diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-06 16:19:04 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-06 16:19:04 +0000 |
commit | 232ec2e0d27cf2d28abffa7b4e71198a6b40f75e (patch) | |
tree | ad63c17608639e2dc145c5d89bb1d9f873e44674 /package/uhttpd/src/Makefile | |
parent | c9a09f81716586a3080159674e97c802d049c45f (diff) |
[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/Makefile')
-rw-r--r-- | package/uhttpd/src/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/uhttpd/src/Makefile b/package/uhttpd/src/Makefile index 06d61bdef..6dcc3555f 100644 --- a/package/uhttpd/src/Makefile +++ b/package/uhttpd/src/Makefile @@ -13,6 +13,12 @@ LIB = -Wl,--export-dynamic -lcrypt -ldl TLSLIB = LUALIB = +HAVE_SHADOW=$(shell echo 'int main(void){ return !getspnam("root"); }' | \ + $(CC) -include shadow.h -xc -o/dev/null - 2>/dev/null && echo yes) + +ifeq ($(HAVE_SHADOW),yes) + CFLAGS += -DHAVE_SHADOW +endif world: compile |