From fa644368ed7583c93dd1e4dffbafeb0e54167670 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 6 Nov 2010 16:19:04 +0000 Subject: uhttpd: make it work without shadow password support SVN-Revision: 23897 --- package/uhttpd/src/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package/uhttpd/src/Makefile') diff --git a/package/uhttpd/src/Makefile b/package/uhttpd/src/Makefile index 06d61bdef3..6dcc3555f1 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 -- cgit v1.2.3