pkgsrc-WIP-changes archive

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

wip/tftp-hpa: added IPv6 compile fix for recent MacOS versions



Module Name:	pkgsrc-wip
Committed By:	Georg Schwarz <schwarz%NetBSD.org@localhost>
Pushed By:	schwarz
Date:		Fri Apr 28 15:55:20 2017 +0200
Changeset:	56f4f025ded96dd83f59d2b6195276664a55ce27

Modified Files:
	tftp-hpa/Makefile

Log Message:
wip/tftp-hpa: added IPv6 compile fix for recent MacOS versions

more recent versions of MacOS need to have _APPLE_USE_RFC_3542 defined
in order to compile

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=56f4f025ded96dd83f59d2b6195276664a55ce27

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tftp-hpa/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diffs:
diff --git a/tftp-hpa/Makefile b/tftp-hpa/Makefile
index ee2b46558f..0525b53591 100644
--- a/tftp-hpa/Makefile
+++ b/tftp-hpa/Makefile
@@ -21,6 +21,12 @@ MAKE_ENV+=	INSTALLROOT="${DESTDIR}"
 
 .include 	"options.mk"
 
+.if !empty(PKG_OPTIONS:Minet6)
+# the following is needed at least on MacOS 10.11
+# and should not hurt on earlier versions
+CFLAGS.Darwin+= -D__APPLE_USE_RFC_3542
+.endif
+
 INSTALLATION_DIRS=	bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
 
 .include "../../devel/readline/buildlink3.mk"


Home | Main Index | Thread Index | Old Index