mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Use AC_HEADER_MAJOR to determine where major/minor are defined.
This commit is contained in:
parent
dbcd7222a1
commit
cf3fce6651
11
config.h.in
11
config.h.in
@ -602,9 +602,6 @@
|
|||||||
*/
|
*/
|
||||||
#undef HAVE_SYS_DIR_H
|
#undef HAVE_SYS_DIR_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/mkdev.h> header file. */
|
|
||||||
#undef HAVE_SYS_MKDEV_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||||
*/
|
*/
|
||||||
#undef HAVE_SYS_NDIR_H
|
#undef HAVE_SYS_NDIR_H
|
||||||
@ -709,6 +706,14 @@
|
|||||||
/* The user or email address that sudo mail is sent to. */
|
/* The user or email address that sudo mail is sent to. */
|
||||||
#undef MAILTO
|
#undef MAILTO
|
||||||
|
|
||||||
|
/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
|
||||||
|
*/
|
||||||
|
#undef MAJOR_IN_MKDEV
|
||||||
|
|
||||||
|
/* Define to 1 if `major', `minor', and `makedev' are declared in
|
||||||
|
<sysmacros.h>. */
|
||||||
|
#undef MAJOR_IN_SYSMACROS
|
||||||
|
|
||||||
/* The max number of chars per log file line (for line wrapping). */
|
/* The max number of chars per log file line (for line wrapping). */
|
||||||
#undef MAXLOGFILELEN
|
#undef MAXLOGFILELEN
|
||||||
|
|
||||||
|
52
configure
vendored
52
configure
vendored
@ -15235,7 +15235,57 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/mkdev.h sys/select.h sys/stropts.h sys/sysmacros.h
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
|
||||||
|
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
|
||||||
|
if ${ac_cv_header_sys_types_h_makedev+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <sys/types.h>
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return makedev(0, 0);
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
ac_cv_header_sys_types_h_makedev=yes
|
||||||
|
else
|
||||||
|
ac_cv_header_sys_types_h_makedev=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
|
||||||
|
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
|
||||||
|
|
||||||
|
if test $ac_cv_header_sys_types_h_makedev = no; then
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
|
||||||
|
|
||||||
|
$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test $ac_cv_header_sys_mkdev_h = no; then
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
|
||||||
|
|
||||||
|
$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
|
@ -2006,7 +2006,8 @@ AC_HEADER_STDC
|
|||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
AC_CHECK_HEADERS(malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/mkdev.h sys/select.h sys/stropts.h sys/sysmacros.h)
|
AC_HEADER_MAJOR
|
||||||
|
AC_CHECK_HEADERS(malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h)
|
||||||
AC_CHECK_HEADERS([procfs.h] [sys/procfs.h], [AC_CHECK_MEMBERS(struct psinfo.pr_ttydev, [AC_CHECK_FUNCS(_ttyname_dev)], [], [AC_INCLUDES_DEFAULT
|
AC_CHECK_HEADERS([procfs.h] [sys/procfs.h], [AC_CHECK_MEMBERS(struct psinfo.pr_ttydev, [AC_CHECK_FUNCS(_ttyname_dev)], [], [AC_INCLUDES_DEFAULT
|
||||||
#ifdef HAVE_PROCFS_H
|
#ifdef HAVE_PROCFS_H
|
||||||
#include <procfs.h>
|
#include <procfs.h>
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#if defined(HAVE_SYS_MKDEV_H)
|
#if defined(MAJOR_IN_MKDEV)
|
||||||
# include <sys/mkdev.h>
|
# include <sys/mkdev.h>
|
||||||
#elif defined(HAVE_SYS_SYSMACROS_H)
|
#elif defined(MAJOR_IN_SYSMACROS)
|
||||||
# include <sys/sysmacros.h>
|
# include <sys/sysmacros.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user