[File] [PATCH 1/1] acinclude.m4: fix another <stdlib.h> include for atoi()

Sam James sam at gentoo.org
Sat Nov 5 06:44:41 UTC 2022


I missed this in the previous commit.

Signed-off-by: Sam James <sam at gentoo.org>
---
 acinclude.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/acinclude.m4 b/acinclude.m4
index e0811dd8..ef44a07f 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
-- 
2.38.1



More information about the File mailing list