]> granicus.if.org Git - file/commitdiff
Autoconf's default includes (4th argument of AC_CHECK_MEMBERS) don't
authorChristos Zoulas <christos@zoulas.com>
Sun, 3 Mar 2019 02:31:17 +0000 (02:31 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 3 Mar 2019 02:31:17 +0000 (02:31 +0000)
include <time.h> and therefore the struct member didn't get recognized.
(Peter Kokot)

configure.ac

index 402f75dd5f3fed652ad32ee80bd538259b7e1d10..b0e02bf7cda817521b3309987849065940a01f30 100644 (file)
@@ -105,7 +105,7 @@ AC_TYPE_OFF_T
 AC_TYPE_SIZE_T
 AC_CHECK_MEMBERS([struct stat.st_rdev])
 
-AC_CHECK_MEMBERS([struct tm.tm_gmtoff])
+AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
 AC_STRUCT_TIMEZONE
 AC_STRUCT_TIMEZONE_DAYLIGHT
 AC_SYS_LARGEFILE