pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/isc-dhcp4 isc-dhcp4: Fix build on SunOS with newer...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94e4d2bfa683
branches:  trunk
changeset: 324580:94e4d2bfa683
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Oct 23 13:10:05 2018 +0000

description:
isc-dhcp4: Fix build on SunOS with newer GCC.

diffstat:

 net/isc-dhcp4/Makefile.common |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 6c0ddb5d7b3f -r 94e4d2bfa683 net/isc-dhcp4/Makefile.common
--- a/net/isc-dhcp4/Makefile.common     Tue Oct 23 13:08:39 2018 +0000
+++ b/net/isc-dhcp4/Makefile.common     Tue Oct 23 13:10:05 2018 +0000
@@ -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 @@
 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_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 @@
                                ${CONFIGURE_ARGS}               \
                                ${BIND_CONFIGURE_ARGS}
 
+.include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"



Home | Main Index | Thread Index | Old Index