summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-11-19 19:10:30 +0000
committerChristos Zoulas <christos@zoulas.com>2022-11-19 19:10:30 +0000
commit8c845b7bbad085678695d3e70467b8eec3dfa7af (patch)
treec086b37ec9dcede0473cb594ff1d0219269da80b
parent4502517cc7316569d5902ab65c97b3b8e46f8a25 (diff)
downloadfile-git-8c845b7bbad085678695d3e70467b8eec3dfa7af.tar.gz
Include stdlib.h for atoi(3) (Sam James)
-rw-r--r--acinclude.m43
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