summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2022-09-24 04:20:34 +0000
committerXin LI <delphij@FreeBSD.org>2022-09-24 04:20:34 +0000
commitac33800609941e32486585331e2d4af9ecdd554b (patch)
treed643ef47f63c6734de36c5d0ee5fa380d35502da /acinclude.m4
parent5457a3f25818dc2a14ec8a58c6f27dc42a50cdd4 (diff)
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 77b63ff5cb7b..e0811dd899aa 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -35,7 +35,8 @@ if test "$ac_cv_struct_tm_isdst" = yes; then
fi
-AC_CHECK_DECLS([daylight], , , [#include <time.h>])
+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>],