aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd-utils.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-06 16:19:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-06 16:19:04 +0000
commit160c1f2b3778a8d2f57aebb4b9d8f7efffd6b67e (patch)
treead63c17608639e2dc145c5d89bb1d9f873e44674 /package/uhttpd/src/uhttpd-utils.h
parentc842c936476fb06f727a8fd5d9323ab6dac6ada6 (diff)
downloadmaster-187ad058-160c1f2b3778a8d2f57aebb4b9d8f7efffd6b67e.tar.gz
master-187ad058-160c1f2b3778a8d2f57aebb4b9d8f7efffd6b67e.tar.bz2
master-187ad058-160c1f2b3778a8d2f57aebb4b9d8f7efffd6b67e.zip
[package] uhttpd: make it work without shadow password support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23897 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uhttpd/src/uhttpd-utils.h')
-rw-r--r--package/uhttpd/src/uhttpd-utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h
index 3514ce1cac..6a0a395a91 100644
--- a/package/uhttpd/src/uhttpd-utils.h
+++ b/package/uhttpd/src/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))