diff --git a/config.h.in b/config.h.in index 3dbc35468..5dfe95a91 100644 --- a/config.h.in +++ b/config.h.in @@ -647,9 +647,6 @@ /* Define to 1 if you have the `pread' function. */ #undef HAVE_PREAD -/* Define to 1 if you have the `pread64' function. */ -#undef HAVE_PREAD64 - /* Define to 1 if you have the `priv_set' function. */ #undef HAVE_PRIV_SET @@ -677,9 +674,6 @@ /* Define to 1 if you have the `pwrite' function. */ #undef HAVE_PWRITE -/* Define to 1 if you have the `pwrite64' function. */ -#undef HAVE_PWRITE64 - /* Define to 1 if you have the `pw_dup' function. */ #undef HAVE_PW_DUP @@ -1332,10 +1326,6 @@ /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS -/* Define to 1 to enable 64-bit versions of standard C functions on 32-bit - systems. */ -#undef _LARGEFILE64_SOURCE - /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES diff --git a/configure b/configure index 29c381183..5ad31f30d 100755 --- a/configure +++ b/configure @@ -20061,33 +20061,6 @@ if test "x$ac_cv_func_pread" = xyes then : printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h - # pread(2) on 32-bit HP-UX 11.00 is buggy, use pread64(2) instead. - case "$host_os" in - hpux*|hiuxmpp*) - O_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" - - for ac_func in pread64 pwrite64 -do : - as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes" -then : - cat >>confdefs.h <<_ACEOF -#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - - -printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h - - -fi - -done - CPPFLAGS="$O_CPPFLAGS" - ;; - esac - else $as_nop case " $LIBOBJS " in diff --git a/configure.ac b/configure.ac index 9be88600b..9b173a5ec 100644 --- a/configure.ac +++ b/configure.ac @@ -2689,19 +2689,7 @@ dnl Function checks dnl AC_FUNC_GETGROUPS AC_CHECK_FUNCS_ONCE([fexecve fmemopen killpg nl_langinfo faccessat wordexp getauxval fseeko]) -AC_CHECK_FUNCS([pread], [ - # pread(2) on 32-bit HP-UX 11.00 is buggy, use pread64(2) instead. - case "$host_os" in - hpux*|hiuxmpp*) - O_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" - AC_CHECK_FUNCS([pread64 pwrite64], [ - AC_DEFINE([_LARGEFILE64_SOURCE], [1], [Define to 1 to enable 64-bit versions of standard C functions on 32-bit systems.]) - ]) - CPPFLAGS="$O_CPPFLAGS" - ;; - esac -], [ +AC_CHECK_FUNCS([pread], [], [ AC_LIBOBJ(pread) SUDO_APPEND_COMPAT_EXP(sudo_pread) ])