summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4656cc85..67f28552 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,7 @@ CHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL)
CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES(getopt.h HAVE_GETOPT_H)
CHECK_INCLUDE_FILES(string.h HAVE_STRING_H)
+CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY)
### Configure build
#Required libraries, supplied with navit
diff --git a/config.h.cmake b/config.h.cmake
index 8bde361f..3cc79c37 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -60,6 +60,7 @@
#cmakedefine HAVE_POPEN 1
#cmakedefine HAVE_GETOPT_H 1
+#cmakedefine HAVE_GETTIMEOFDAY 1
#cmakedefine HAVE__ATOI64 1