diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2015-11-06 17:24:23 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2015-11-06 17:27:24 +0100 |
commit | f1daf9ced46ba65b025a92f512833c86d04e7cf2 (patch) | |
tree | d8c63373681dde1e5db37d76019df110eb75b4cf /configure.cmake | |
parent | a36048d143c2e3cd956009849dc28f4a714d00d0 (diff) | |
download | mariadb-git-f1daf9ced46ba65b025a92f512833c86d04e7cf2.tar.gz |
MDEV-9024 Build fails with VS2015
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.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index fb127688bd2..f8c58dac391 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1056,3 +1056,5 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN CHECK_STRUCT_HAS_MEMBER("struct dirent" d_namlen "dirent.h" STRUCT_DIRENT_HAS_D_NAMLEN) SET(SPRINTF_RETURNS_INT 1) CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H) +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) |