aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake8
-rw-r--r--cmakeconfig.h.in6
2 files changed, 12 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 3e1e125d5f..2baed4edc9 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -76,9 +76,13 @@ check_function_exists("mkdtemp" HAVE_MKDTEMP)
check_function_exists("mkstemp" HAVE_MKSTEMP)
check_function_exists("sysconf" HAVE_SYSCONF)
+#Struct members
+include(CheckStructHasMember)
+check_struct_has_member("struct tm" tm_zone time.h HAVE_TM_ZONE)
+
#Symbols but NOT enums or types
-#include(CheckSymbolExists)
-#check_symbol_exists(NL80211_CMD_SET_CHANNEL "linux/nl80211.h" HAVE_NL80211_CMD_SET_CHANNEL)
+include(CheckSymbolExists)
+check_symbol_exists(tzname "time.h" HAVE_TZNAME)
# Check for stuff that isn't testable via the tests above
#include(CheckCSourceCompiles)
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index 21f2698f94..2b8e9a988a 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -309,6 +309,12 @@
/* Define to 1 if you have the <winsock2.h> header file. */
#cmakedefine HAVE_WINSOCK2_H 1
+/* Define to 1 if tm_zone field exists in struct tm. */
+#cmakedefine HAVE_TM_ZONE 1
+
+/* Define to 1 if tzname array exists. */
+#cmakedefine HAVE_TZNAME 1
+
/* HTML viewer, e.g. mozilla */
#cmakedefine HTML_VIEWER