2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Enable OpenBSD extensions on NetBSD to get reallocarray(3) prototype.

This commit is contained in:
Todd C. Miller 2019-12-25 11:21:49 -07:00
parent c321b3e609
commit c8532ae7a9
3 changed files with 17 additions and 0 deletions

View File

@ -1286,6 +1286,11 @@
# undef _BSD_SOURCE
#endif
/* Enable OpenBSD extensions on NetBSD. */
#ifndef _OPENBSD_SOURCE
# undef _OPENBSD_SOURCE
#endif
/* Enable BSD types on IRIX. */
#ifndef _BSD_TYPES
# undef _BSD_TYPES

4
configure vendored
View File

@ -16284,6 +16284,10 @@ done
test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
: ${with_logincap='maybe'}
# For reallocarray()
$as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
# Examples go in share/examples/sudo
if test X"$with_exampledir" = X""; then
exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'

View File

@ -2189,6 +2189,9 @@ case "$host" in
test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
: ${with_logincap='maybe'}
# For reallocarray()
AC_DEFINE([_OPENBSD_SOURCE])
# Examples go in share/examples/sudo
if test X"$with_exampledir" = X""; then
exampledir='$(datarootdir)/examples/$(PACKAGE_TARNAME)'
@ -4737,6 +4740,11 @@ AH_BOTTOM([/* BSD compatibility on some SVR4 systems. */
# undef _BSD_SOURCE
#endif
/* Enable OpenBSD extensions on NetBSD. */
#ifndef _OPENBSD_SOURCE
# undef _OPENBSD_SOURCE
#endif
/* Enable BSD types on IRIX. */
#ifndef _BSD_TYPES
# undef _BSD_TYPES