Author: nico
Date: 2015-03-16 13:32:22 +0100 (Mon, 16 Mar 2015)
New Revision: 44843

Modified:
   trunk/package/network/services/uhttpd/Makefile
   trunk/package/utils/ugps/Makefile
Log:
packages: more (e)glibc fixes after r44701

_GNU_SOURCE has been declared "deprecated" in favor of _DEFAULT_SOURCE in glibc

Signed-off-by: Nicolas Thill <[email protected]>

Modified: trunk/package/network/services/uhttpd/Makefile
===================================================================
--- trunk/package/network/services/uhttpd/Makefile      2015-03-16 12:25:06 UTC 
(rev 44842)
+++ trunk/package/network/services/uhttpd/Makefile      2015-03-16 12:32:22 UTC 
(rev 44843)
@@ -107,6 +107,10 @@
 /etc/uhttpd.key
 endef
 
+ifneq ($(CONFIG_USE_GLIBC),)
+  TARGET_CFLAGS += -D_DEFAULT_SOURCE
+endif
+
 TARGET_LDFLAGS += -lcrypt
 
 CMAKE_OPTIONS = -DTLS_SUPPORT=on

Modified: trunk/package/utils/ugps/Makefile
===================================================================
--- trunk/package/utils/ugps/Makefile   2015-03-16 12:25:06 UTC (rev 44842)
+++ trunk/package/utils/ugps/Makefile   2015-03-16 12:32:22 UTC (rev 44843)
@@ -32,6 +32,10 @@
 
 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
 
+ifneq ($(CONFIG_USE_GLIBC),)
+  TARGET_CFLAGS += -D_DEFAULT_SOURCE
+endif
+
 define Package/ugps/install
        $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to