diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-23 13:10:05 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-23 13:10:05 +0000 |
commit | cb17ae3c8d31b1b9a4710eda00bd72264022c596 (patch) | |
tree | ff1e824d97628f51bd55e66c14f8155eb9fd7c6d /net/isc-dhcp4 | |
parent | e2062069f730dee997bbaddb9199fe12256378bc (diff) | |
download | pkgsrc-cb17ae3c8d31b1b9a4710eda00bd72264022c596.tar.gz |
isc-dhcp4: Fix build on SunOS with newer GCC.
Diffstat (limited to 'net/isc-dhcp4')
-rw-r--r-- | net/isc-dhcp4/Makefile.common | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/isc-dhcp4/Makefile.common b/net/isc-dhcp4/Makefile.common index a2c41faa099..385772a512a 100644 --- a/net/isc-dhcp4/Makefile.common +++ b/net/isc-dhcp4/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.36 2018/03/21 15:05:05 taca Exp $ +# $NetBSD: Makefile.common,v 1.37 2018/10/23 13:10:05 jperkin Exp $ # # used by net/isc-dhcp4/Makefile # used by net/isc-dhcpd4/Makefile @@ -27,7 +27,7 @@ DHCP_PID?= ${VARBASE}/run/isc-dhcp PKG_SYSCONFSUBDIR= dhcp USE_TOOLS+= gmake gunzip gzip tar -USE_LANGUAGES+= c c++ +USE_LANGUAGES+= c99 c++ PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo @@ -57,6 +57,8 @@ CONFIGURE_ENV.NetBSD+= ac_cv_file__dev_random=yes CONFIGURE_ARGS.NetBSD+= --with-randomdev=/dev/random .endif +CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ + SUBST_CLASSES+= config SUBST_STAGE.config= pre-configure SUBST_FILES.config= includes/dhcpd.h @@ -93,4 +95,5 @@ post-configure: ${CONFIGURE_ARGS} \ ${BIND_CONFIGURE_ARGS} +.include "../../devel/zlib/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" |