pkgsrc-WIP-changes archive

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

sacc-git: Pass -D_NETBSD_SOURCE for strcasestr(3) and asprintf(3)



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Oct 28 09:44:08 2019 +0100
Changeset:	f768c0791f5336de3ed1ab1f6d5aadd45daa1858

Modified Files:
	sacc-git/Makefile

Log Message:
sacc-git: Pass -D_NETBSD_SOURCE for strcasestr(3) and asprintf(3)

(Other platforms may need -DNEED_STRCASESTR and -DNEED_ASPRINTF if
such functions are not available, only tested on NetBSD at the moment.)

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

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

diffstat:
 sacc-git/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diffs:
diff --git a/sacc-git/Makefile b/sacc-git/Makefile
index eea0e0b188..b632f972bd 100644
--- a/sacc-git/Makefile
+++ b/sacc-git/Makefile
@@ -19,6 +19,8 @@ MAKE_FLAGS+=	PREFIX="${PREFIX}"
 MAKE_FLAGS+=	MANDIR="${PREFIX}/${PKGMANDIR}/man1"
 MAKE_FLAGS+=	LIBS=${BUILDLINK_LDADD.terminfo:Q}
 
+CFLAGS.NetBSD+=	-D_NETBSD_SOURCE	# strcasestr, asprintf
+
 .include "../../mk/terminfo.buildlink3.mk"
 .include "../../wip/mk/git-package.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index