Przeglądaj źródła

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]>

SVN-Revision: 44843
Nicolas Thill 10 lat temu
rodzic
commit
81ff0511df

+ 4 - 0
package/network/services/uhttpd/Makefile

@@ -107,6 +107,10 @@ define Package/uhttpd/conffiles
 /etc/uhttpd.key
 /etc/uhttpd.key
 endef
 endef
 
 
+ifneq ($(CONFIG_USE_GLIBC),)
+  TARGET_CFLAGS += -D_DEFAULT_SOURCE
+endif
+
 TARGET_LDFLAGS += -lcrypt
 TARGET_LDFLAGS += -lcrypt
 
 
 CMAKE_OPTIONS = -DTLS_SUPPORT=on
 CMAKE_OPTIONS = -DTLS_SUPPORT=on

+ 4 - 0
package/utils/ugps/Makefile

@@ -32,6 +32,10 @@ endef
 
 
 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
 
 
+ifneq ($(CONFIG_USE_GLIBC),)
+  TARGET_CFLAGS += -D_DEFAULT_SOURCE
+endif
+
 define Package/ugps/install
 define Package/ugps/install
 	$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
 	$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/