Windows compatibility fixes
VS2013 has trouble with relative include paths for apps/openssl, so move certhash_win/apps_win.c back to apps/openssl. gmtime_r on mingw64 fails with negative time_t, override gmtime_s fails all of the time unit tests, override SHUT_RD/WR are defined in newer mingw64 headers, check before overriding
This commit is contained in:
@@ -2,7 +2,6 @@ include_directories(
|
||||
.
|
||||
../include
|
||||
../include/compat
|
||||
./openssl
|
||||
)
|
||||
|
||||
set(
|
||||
@@ -63,8 +62,8 @@ if(CMAKE_HOST_UNIX)
|
||||
endif()
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/apps_win.c)
|
||||
set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/certhash_win.c)
|
||||
set(OPENSSL_SRC ${OPENSSL_SRC} openssl/apps_win.c)
|
||||
set(OPENSSL_SRC ${OPENSSL_SRC} openssl/certhash_win.c)
|
||||
set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/poll_win.c)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user