diff options
| author | Brent Cook <bcook@openbsd.org> | 2015-10-18 09:28:10 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-10-18 09:28:10 -0500 |
| commit | 0197a589691274055e3a6f47a3652a6714d676bc (patch) | |
| tree | 9a2c16f2cb86605522ce747c1a71bfd0c23db389 /apps | |
| parent | c8918dd0be1bbadfcebfc6631bd63f3b3e83befd (diff) | |
| download | portable-0197a589691274055e3a6f47a3652a6714d676bc.tar.gz portable-0197a589691274055e3a6f47a3652a6714d676bc.tar.bz2 portable-0197a589691274055e3a6f47a3652a6714d676bc.zip | |
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
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | apps/openssl/Makefile.am | 4 | ||||
| -rw-r--r-- | apps/openssl/apps_win.c (renamed from apps/openssl/compat/apps_win.c) | 2 | ||||
| -rw-r--r-- | apps/openssl/certhash_win.c (renamed from apps/openssl/compat/certhash_win.c) | 0 |
4 files changed, 5 insertions, 6 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 08bce42..6213aeb 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt | |||
| @@ -2,7 +2,6 @@ include_directories( | |||
| 2 | . | 2 | . |
| 3 | ../include | 3 | ../include |
| 4 | ../include/compat | 4 | ../include/compat |
| 5 | ./openssl | ||
| 6 | ) | 5 | ) |
| 7 | 6 | ||
| 8 | set( | 7 | set( |
| @@ -63,8 +62,8 @@ if(CMAKE_HOST_UNIX) | |||
| 63 | endif() | 62 | endif() |
| 64 | 63 | ||
| 65 | if(CMAKE_HOST_WIN32) | 64 | if(CMAKE_HOST_WIN32) |
| 66 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/apps_win.c) | 65 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/apps_win.c) |
| 67 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/certhash_win.c) | 66 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/certhash_win.c) |
| 68 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/poll_win.c) | 67 | set(OPENSSL_SRC ${OPENSSL_SRC} openssl/compat/poll_win.c) |
| 69 | endif() | 68 | endif() |
| 70 | 69 | ||
diff --git a/apps/openssl/Makefile.am b/apps/openssl/Makefile.am index 5a8d458..6ec3d62 100644 --- a/apps/openssl/Makefile.am +++ b/apps/openssl/Makefile.am | |||
| @@ -60,11 +60,11 @@ openssl_SOURCES += x509.c | |||
| 60 | if BUILD_CERTHASH | 60 | if BUILD_CERTHASH |
| 61 | openssl_SOURCES += certhash.c | 61 | openssl_SOURCES += certhash.c |
| 62 | else | 62 | else |
| 63 | openssl_SOURCES += compat/certhash_win.c | 63 | openssl_SOURCES += certhash_win.c |
| 64 | endif | 64 | endif |
| 65 | 65 | ||
| 66 | if HOST_WIN | 66 | if HOST_WIN |
| 67 | openssl_SOURCES += compat/apps_win.c | 67 | openssl_SOURCES += apps_win.c |
| 68 | else | 68 | else |
| 69 | openssl_SOURCES += apps_posix.c | 69 | openssl_SOURCES += apps_posix.c |
| 70 | endif | 70 | endif |
diff --git a/apps/openssl/compat/apps_win.c b/apps/openssl/apps_win.c index bc999f6..37bfcc9 100644 --- a/apps/openssl/compat/apps_win.c +++ b/apps/openssl/apps_win.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include <io.h> | 10 | #include <io.h> |
| 11 | #include <fcntl.h> | 11 | #include <fcntl.h> |
| 12 | 12 | ||
| 13 | #include <apps.h> | 13 | #include "apps.h" |
| 14 | 14 | ||
| 15 | double | 15 | double |
| 16 | app_tminterval(int stop, int usertime) | 16 | app_tminterval(int stop, int usertime) |
diff --git a/apps/openssl/compat/certhash_win.c b/apps/openssl/certhash_win.c index be57e2a..be57e2a 100644 --- a/apps/openssl/compat/certhash_win.c +++ b/apps/openssl/certhash_win.c | |||
