From: Felix Fietkau Date: Fri, 29 Jun 2012 21:56:35 +0000 (+0000) Subject: atftp: fix picking the right argz.h header file on eglibc X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=375456dc422b170974d892b695ac20518f3ea714;p=openwrt%2Fsvn-archive%2Fpackages.git atftp: fix picking the right argz.h header file on eglibc SVN-Revision: 32547 --- diff --git a/net/atftp/Makefile b/net/atftp/Makefile index e56a5f646..e15f410d6 100644 --- a/net/atftp/Makefile +++ b/net/atftp/Makefile @@ -39,7 +39,16 @@ define Package/atftpd endef CONFIGURE_ARGS += \ - --disable-libwrap + --disable-libwrap + +ifdef CONFIG_USE_EGLIBC + TARGET_CFLAGS += -DHAVE_ARGZ=1 + + define Build/Prepare + $(Build/Prepare/Default) + echo '#include_next ' > $(PKG_BUILD_DIR)/argz.h + endef +endif MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \