pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
opendoas: Set _OPENBSD_SOURCE only for NetBSD.
Module Name: pkgsrc-wip
Committed By: Sunil Nimmagadda <sunil%nimmagadda.net@localhost>
Pushed By: skn
Date: Tue Nov 3 09:21:47 2020 +0530
Changeset: e4f45ab45b4c87435fbbb2523b0af745fd6a754f
Modified Files:
opendoas/Makefile
Log Message:
opendoas: Set _OPENBSD_SOURCE only for NetBSD.
Add a comment about preferring libc version of reallocarray(3).
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e4f45ab45b4c87435fbbb2523b0af745fd6a754f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
opendoas/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diffs:
diff --git a/opendoas/Makefile b/opendoas/Makefile
index 1a388d0c4a..74410b43a0 100644
--- a/opendoas/Makefile
+++ b/opendoas/Makefile
@@ -29,7 +29,8 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
USE_TOOLS= gmake yacc
BUILD_TARGET= default
-CFLAGS+= -D_OPENBSD_SOURCE=1
+# Prefer NetBSD's libc version of reallocarray(3)
+CFLAGS.NetBSD+= -D_OPENBSD_SOURCE=1
SPECIAL_PERMS+= bin/doas ${SETUID_ROOT_PERMS}
Home |
Main Index |
Thread Index |
Old Index