diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-22 06:05:39 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-22 06:05:39 +0000 |
commit | 2d0c5eefd05ebe38eaf003940b4fd0feaa3e7b2f (patch) | |
tree | 844383b486a93f7f0ca0082e33a2ee4b04c7344a /m4/mktime.m4 | |
parent | 5a43b499b16b9eee62185953677ef2b0b32395e2 (diff) | |
download | coreutils-2d0c5eefd05ebe38eaf003940b4fd0feaa3e7b2f.tar.xz |
Sync from gnulib.
Diffstat (limited to 'm4/mktime.m4')
-rw-r--r-- | m4/mktime.m4 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/m4/mktime.m4 b/m4/mktime.m4 index 554ad25c9..07be5ccc0 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -14,8 +14,8 @@ dnl From Jim Meyering. # -------------- AC_DEFUN([AC_FUNC_MKTIME], [AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CHECK_HEADERS(stdlib.h sys/time.h unistd.h) -AC_CHECK_FUNCS(alarm) +AC_CHECK_HEADERS_ONCE(sys/time.h) +AC_CHECK_FUNCS_ONCE(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_RUN_IFELSE([AC_LANG_SOURCE( [[/* Test program from Paul Eggert and Tony Leneis. */ @@ -30,10 +30,7 @@ AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, # endif #endif -#if HAVE_STDLIB_H -# include <stdlib.h> -#endif - +#include <stdlib.h> #include <unistd.h> #if !HAVE_ALARM |