summaryrefslogtreecommitdiff
path: root/uhttpd-utils.h
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-06 16:19:04 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-06 16:19:04 +0000
commit68d71fcb1951986a741cf94bec5e7db9f17dbee7 (patch)
tree0cf5bf326eb3d0122a7579bab0fbf63b46547c20 /uhttpd-utils.h
parentaec6a1c0f18070c89af8bf41ed69e06aeba64aea (diff)
downloaduhttpd-68d71fcb1951986a741cf94bec5e7db9f17dbee7.tar.gz
[package] uhttpd: make it work without shadow password support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@23897 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd-utils.h')
-rw-r--r--uhttpd-utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/uhttpd-utils.h b/uhttpd-utils.h
index 3514ce1..6a0a395 100644
--- a/uhttpd-utils.h
+++ b/uhttpd-utils.h
@@ -21,9 +21,12 @@
#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))