From: Ryan Schmidt Date: Sun, 20 Mar 2022 21:29:10 +0000 (-0500) Subject: acinclude.m4: Include when using exit X-Git-Tag: v1.9.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1162%2Fhead;p=thirdparty%2Frrdtool-1.x.git acinclude.m4: Include when using exit Fixes: conftest.c:124:33: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' --- diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index d9d9eb25..0d6fbf5d 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -582,7 +582,8 @@ AC_DEFUN([GC_TIMEZONE], [ AC_REQUIRE([AC_STRUCT_TM]) AC_CACHE_CHECK([tm_gmtoff in struct tm], gq_cv_have_tm_gmtoff, gq_cv_have_tm_gmtoff=no - AC_TRY_COMPILE([#include + AC_TRY_COMPILE([#include + #include #include <$ac_cv_struct_tm> ], [struct tm t; @@ -595,7 +596,8 @@ AC_DEFUN([GC_TIMEZONE], [ AC_CACHE_CHECK([__tm_gmtoff in struct tm], gq_cv_have___tm_gmtoff, gq_cv_have___tm_gmtoff=no - AC_TRY_COMPILE([#include + AC_TRY_COMPILE([#include + #include #include <$ac_cv_struct_tm> ], [struct tm t;