diff --git a/configure b/configure index ac050a325..02dbe679c 100755 --- a/configure +++ b/configure @@ -14211,6 +14211,7 @@ done SKIP_SETREUID=yes ;; esac + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDOERS_LIBS="${SUDOERS_LIBS} -lmd" fi @@ -14220,8 +14221,9 @@ done ;; *-*-*openbsd*) # OpenBSD has a real setreuid(2) starting with 3.3 but - # we will use setreuid(2) instead. + # we will use setresuid(2) instead. SKIP_SETREUID=yes + OSDEFS="${OSDEFS} -D_BSD_SOURCE" CHECKSHADOW="false" # OpenBSD >= 3.0 supports BSD auth if test -z "$with_bsdauth"; then @@ -14243,6 +14245,7 @@ done : ${with_logincap='maybe'} ;; *-*-dragonfly*) + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDOERS_LIBS="${SUDOERS_LIBS} -lmd" fi diff --git a/configure.in b/configure.in index 58c281db0..a62c9a7f7 100644 --- a/configure.in +++ b/configure.in @@ -1785,6 +1785,7 @@ case "$host" in SKIP_SETREUID=yes ;; esac + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDOERS_LIBS="${SUDOERS_LIBS} -lmd" fi @@ -1794,8 +1795,9 @@ case "$host" in ;; *-*-*openbsd*) # OpenBSD has a real setreuid(2) starting with 3.3 but - # we will use setreuid(2) instead. + # we will use setresuid(2) instead. SKIP_SETREUID=yes + OSDEFS="${OSDEFS} -D_BSD_SOURCE" CHECKSHADOW="false" # OpenBSD >= 3.0 supports BSD auth if test -z "$with_bsdauth"; then @@ -1817,6 +1819,7 @@ case "$host" in : ${with_logincap='maybe'} ;; *-*-dragonfly*) + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDOERS_LIBS="${SUDOERS_LIBS} -lmd" fi