diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 20:13:28 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 20:13:28 +0200 |
commit | fe145b0900d8006310232e2edb4137c04c116702 (patch) | |
tree | 12d9c3f5bea6c6481050211f64ad22118d925c93 /configure.cmake | |
parent | d98270e1a39c5c9d40b9d3fbca7d8a3ebeb92ccc (diff) | |
parent | 72ae1d65dd62f1e2cc308549a84a46feadd158f4 (diff) | |
download | mariadb-git-fe145b0900d8006310232e2edb4137c04c116702.tar.gz |
merge
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 954b60a45f6..90a01ff913c 100644 --- a/configure.cmake +++ b/configure.cmake @@ -574,6 +574,7 @@ MY_CHECK_TYPE_SIZE(uint32 UINT32) MY_CHECK_TYPE_SIZE(u_int32_t U_INT32_T) MY_CHECK_TYPE_SIZE(int64 INT64) MY_CHECK_TYPE_SIZE(uint64 UINT64) +MY_CHECK_TYPE_SIZE(time_t TIME_T) SET (CMAKE_EXTRA_INCLUDE_FILES sys/types.h) MY_CHECK_TYPE_SIZE(bool BOOL) SET(CMAKE_EXTRA_INCLUDE_FILES) @@ -593,6 +594,16 @@ ENDIF() # Code tests # +# check whether time_t is unsigned +CHECK_C_SOURCE_COMPILES(" +int main() +{ + int array[(((time_t)-1) > 0) ? 1 : -1]; + return 0; +}" +TIME_T_UNSIGNED) + + CHECK_C_SOURCE_COMPILES(" #ifdef _WIN32 #include <winsock2.h> |