[package] uhttpd: make it work without shadow password support
[openwrt.git] / package / uhttpd / src / uhttpd-utils.h
index 3514ce1..6a0a395 100644 (file)
 #include <stdarg.h>
 #include <fcntl.h>
 #include <pwd.h>
-#include <shadow.h>
 #include <sys/stat.h>
 
+#ifdef HAVE_SHADOW
+#include <shadow.h>
+#endif
+
 #define min(x, y) (((x) < (y)) ? (x) : (y))
 #define max(x, y) (((x) > (y)) ? (x) : (y))