diff options
author | Christos Zoulas <christos@zoulas.com> | 2022-11-19 19:10:30 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2022-11-19 19:10:30 +0000 |
commit | 8c845b7bbad085678695d3e70467b8eec3dfa7af (patch) | |
tree | c086b37ec9dcede0473cb594ff1d0219269da80b | |
parent | 4502517cc7316569d5902ab65c97b3b8e46f8a25 (diff) | |
download | file-git-8c845b7bbad085678695d3e70467b8eec3dfa7af.tar.gz |
Include stdlib.h for atoi(3) (Sam James)
-rw-r--r-- | acinclude.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 36a94251..30242712 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -39,7 +39,8 @@ AC_CHECK_DECLS([daylight], , , [#include <time.h> #include <stdlib.h>]) AC_CACHE_CHECK(for daylight, ac_cv_var_daylight, [AC_LINK_IFELSE( -[AC_LANG_PROGRAM([#include <time.h>], +[AC_LANG_PROGRAM([#include <time.h> +#include <stdlib.h>], [#if !HAVE_DECL_DAYLIGHT extern int daylight; #endif |