Define _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD
This commit is contained in:
5
configure
vendored
5
configure
vendored
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user