Check for timegm and set a config variable accordingly.

This commit is contained in:
Klaas Freitag 2012-11-08 14:50:08 +01:00
parent bede1acbce
commit 6d126f3956
2 changed files with 2 additions and 0 deletions

View file

@ -53,6 +53,7 @@ if(WIN32)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} psapi kernel32)
endif()
check_function_exists(timegm HAVE_TIMEGM)
check_function_exists(strerror_r HAVE_STRERROR_R)
check_function_exists(utimes HAVE_UTIMES)
check_function_exists(lstat HAVE_LSTAT)

View file

@ -14,6 +14,7 @@
#cmakedefine HAVE_ARGP_H 1
#cmakedefine HAVE_TIMEGM 1
#cmakedefine HAVE_STRERROR_R 1
#cmakedefine HAVE_UTIMES 1
#cmakedefine HAVE_LSTAT 1