Enable OpenBSD extensions on NetBSD to get reallocarray(3) prototype.
This commit is contained in:
@@ -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
4
configure
vendored
@@ -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)'
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user