mac80211: disable an unnecessary backport to reduce code size
[openwrt.git] / package / uhttpd / src / Makefile
index 06d61bd..6dcc355 100644 (file)
@@ -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
 
This page took 0.037333 seconds and 4 git commands to generate.