From: Todd C. Miller Date: Wed, 21 Sep 2011 16:33:23 +0000 (-0400) Subject: Define _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD X-Git-Tag: SUDO_1_7_8~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3ec14d50fabeff297626d3510eafbb0d50fb793;p=sudo Define _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD --HG-- branch : 1.7 --- diff --git a/configure b/configure index ad6274c3e..21d7d900a 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for sudo 1.7.8. +# Generated by GNU Autoconf 2.68 for sudo 1.7.8rc1. # # Report bugs to . # @@ -570,8 +570,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.7.8' -PACKAGE_STRING='sudo 1.7.8' +PACKAGE_VERSION='1.7.8rc1' +PACKAGE_STRING='sudo 1.7.8rc1' PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' PACKAGE_URL='' @@ -1434,7 +1434,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sudo 1.7.8 to adapt to many kinds of systems. +\`configure' configures sudo 1.7.8rc1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1499,7 +1499,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.7.8:";; + short | recursive ) echo "Configuration of sudo 1.7.8rc1:";; esac cat <<\_ACEOF @@ -1718,7 +1718,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.7.8 +sudo configure 1.7.8rc1 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2422,7 +2422,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sudo $as_me 1.7.8, which was +It was created by sudo $as_me 1.7.8rc1, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -14209,6 +14209,7 @@ done SKIP_SETREUID=yes ;; esac + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDO_LIBS="${SUDO_LIBS} -lmd" fi @@ -14218,8 +14219,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 @@ -14241,6 +14243,7 @@ done : ${with_logincap='maybe'} ;; *-*-dragonfly*) + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDO_LIBS="${SUDO_LIBS} -lmd" fi @@ -20428,7 +20431,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sudo $as_me 1.7.8, which was +This file was extended by sudo $as_me 1.7.8rc1, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -20494,7 +20497,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sudo config.status 1.7.8 +sudo config.status 1.7.8rc1 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff --git a/configure.in b/configure.in index cc45e75ab..3342420f1 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Process this file with GNU autoconf to produce a configure script. dnl dnl Copyright (c) 1994-1996,1998-2011 Todd C. Miller dnl -AC_INIT([sudo], [1.7.8], [http://www.sudo.ws/bugs/], [sudo]) +AC_INIT([sudo], [1.7.8rc1], [http://www.sudo.ws/bugs/], [sudo]) AC_CONFIG_HEADER(config.h pathnames.h zlib/zconf.h) dnl dnl Note: this must come after AC_INIT @@ -1774,6 +1774,7 @@ case "$host" in SKIP_SETREUID=yes ;; esac + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDO_LIBS="${SUDO_LIBS} -lmd" fi @@ -1783,8 +1784,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 @@ -1806,6 +1808,7 @@ case "$host" in : ${with_logincap='maybe'} ;; *-*-dragonfly*) + OSDEFS="${OSDEFS} -D_BSD_SOURCE" if test "${with_skey-'no'}" = "yes"; then SUDO_LIBS="${SUDO_LIBS} -lmd" fi