diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | apps/openssl/Makefile.am | 5 | ||||
-rw-r--r-- | apps/openssl/compat/poll_win.c | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt index 7bbdb02..d5f7813 100644 --- a/apps/nc/CMakeLists.txt +++ b/apps/nc/CMakeLists.txt | |||
@@ -22,7 +22,7 @@ else() | |||
22 | set(NC_SRC ${NC_SRC} compat/accept4.c) | 22 | set(NC_SRC ${NC_SRC} compat/accept4.c) |
23 | endif() | 23 | endif() |
24 | 24 | ||
25 | check_function_exists(readpassphrase HAVE_READPASSPHRASE) | 25 | check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE) |
26 | if(HAVE_READPASSPHRASE) | 26 | if(HAVE_READPASSPHRASE) |
27 | add_definitions(-DHAVE_READPASSPHRASE) | 27 | add_definitions(-DHAVE_READPASSPHRASE) |
28 | else() | 28 | else() |
diff --git a/apps/openssl/Makefile.am b/apps/openssl/Makefile.am index 810408d..ee1b65b 100644 --- a/apps/openssl/Makefile.am +++ b/apps/openssl/Makefile.am | |||
@@ -88,11 +88,6 @@ endif | |||
88 | endif | 88 | endif |
89 | 89 | ||
90 | noinst_HEADERS = apps.h | 90 | noinst_HEADERS = apps.h |
91 | noinst_HEADERS += progs.h | ||
92 | noinst_HEADERS += s_apps.h | ||
93 | noinst_HEADERS += testdsa.h | ||
94 | noinst_HEADERS += testrsa.h | ||
95 | noinst_HEADERS += timeouts.h | ||
96 | 91 | ||
97 | EXTRA_DIST = CMakeLists.txt | 92 | EXTRA_DIST = CMakeLists.txt |
98 | 93 | ||
diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c index c9422b9..30f6b60 100644 --- a/apps/openssl/compat/poll_win.c +++ b/apps/openssl/compat/poll_win.c | |||
@@ -248,12 +248,12 @@ poll(struct pollfd *pfds, nfds_t nfds, int timeout_ms) | |||
248 | timespent_ms = 0; | 248 | timespent_ms = 0; |
249 | wait_rc = WAIT_FAILED; | 249 | wait_rc = WAIT_FAILED; |
250 | 250 | ||
251 | if (timeout_ms < 0) | 251 | looptime_ms = (timeout_ms > 100 || timeout_ms == -1) ? 100 : timeout_ms; |
252 | if (timeout_ms == -1) | ||
252 | timeout_ms = INFINITE; | 253 | timeout_ms = INFINITE; |
253 | looptime_ms = timeout_ms > 100 ? 100 : timeout_ms; | ||
254 | 254 | ||
255 | do { | 255 | do { |
256 | struct timeval tv; | 256 | TIMEVAL tv; |
257 | tv.tv_sec = 0; | 257 | tv.tv_sec = 0; |
258 | tv.tv_usec = looptime_ms * 1000; | 258 | tv.tv_usec = looptime_ms * 1000; |
259 | int handle_signaled = 0; | 259 | int handle_signaled = 0; |