summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-02-06 22:41:58 +0100
committerSergei Golubchik <serg@mariadb.org>2016-02-06 22:41:58 +0100
commitc4cb24006139bb6a619ca9d6b00d00c2275d2c28 (patch)
treea9edb0480f4e20aef8c15f2e415f56d2c7681feb /configure.cmake
parent1e361f286bc2cd42c79a4c0ac40209d222e60b11 (diff)
downloadmariadb-git-c4cb24006139bb6a619ca9d6b00d00c2275d2c28.tar.gz
MDEV-9024 Build fails with VS2015
cherry-pick f1daf9ce from 10.0 branch ------------------------------------- Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 6d82b1d88de..d01bf9eb0e7 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -1101,3 +1101,5 @@ CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H)
IF(NOT HAVE_UCONTEXT_H)
CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H)
ENDIF()
+CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_sec "time.h" STRUCT_TIMESPEC_HAS_TV_SEC)
+CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_nsec "time.h" STRUCT_TIMESPEC_HAS_TV_NSEC)