aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-03-16 12:32:22 +0000
committerNicolas Thill <nico@openwrt.org>2015-03-16 12:32:22 +0000
commit81ff0511df3466d7dce5af6f33acbbe4ec89f796 (patch)
tree49205b5f7a27e0fac563a7496786576e4a9dbb9f /package/utils
parent4b382a440b0a7cbddeddd5dafa24be7eca3cd628 (diff)
downloadupstream-81ff0511df3466d7dce5af6f33acbbe4ec89f796.tar.gz
upstream-81ff0511df3466d7dce5af6f33acbbe4ec89f796.tar.bz2
upstream-81ff0511df3466d7dce5af6f33acbbe4ec89f796.zip
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 <nico@openwrt.org> SVN-Revision: 44843
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/ugps/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/utils/ugps/Makefile b/package/utils/ugps/Makefile
index c1bc7cdd01..3662125c3a 100644
--- a/package/utils/ugps/Makefile
+++ b/package/utils/ugps/Makefile
@@ -32,6 +32,10 @@ endef
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/