diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2022-11-16 19:29:22 -0700 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2022-11-16 19:29:22 -0700 |
commit | 31137c7dd9c0a46cb9a05aba4f8f1f3ed4230956 (patch) | |
tree | d07f7fbd5dc2b1543284b36600d98c3b41b5722a /configure.ac | |
parent | 21ecb19ddad6171ff3e0946814c04bee748d8b36 (diff) | |
download | sudo-31137c7dd9c0a46cb9a05aba4f8f1f3ed4230956.tar.gz |
Use AC_SYS_YEAR2038 instead of setting _TIME_BITS by hand.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index a89e3cb1a..22d9488fb 100644 --- a/configure.ac +++ b/configure.ac @@ -2467,18 +2467,9 @@ AC_CHECK_HEADERS([procfs.h] [sys/procfs.h], [AC_CHECK_MEMBERS(struct psinfo.pr_t break) # # Check for large file and 64-bit time support. -# GNU libc only allows setting _TIME_BITS when FILE_OFFSET_BITS is also set. -# GNU libc defines __TIMESIZE on systems where _TIME_BITS can be set. # AC_SYS_LARGEFILE -if test X"$ac_cv_sys_file_offset_bits" = X"yes"; then - AC_CHECK_DECL(__TIMESIZE, [ - AC_DEFINE([_TIME_BITS], [64], [Number of bits in a time_t, on hosts where this is settable.]) - ], [], [ -AC_INCLUDES_DEFAULT -#include <time.h> - ]) -fi +AC_SYS_YEAR2038 # # HP-UX may need to define _XOPEN_SOURCE_EXTENDED to expose MSG_WAITALL. |