aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/nc/CMakeLists.txt2
-rw-r--r--apps/openssl/Makefile.am5
-rw-r--r--apps/openssl/compat/poll_win.c6
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)
23endif() 23endif()
24 24
25check_function_exists(readpassphrase HAVE_READPASSPHRASE) 25check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE)
26if(HAVE_READPASSPHRASE) 26if(HAVE_READPASSPHRASE)
27 add_definitions(-DHAVE_READPASSPHRASE) 27 add_definitions(-DHAVE_READPASSPHRASE)
28else() 28else()
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
88endif 88endif
89 89
90noinst_HEADERS = apps.h 90noinst_HEADERS = apps.h
91noinst_HEADERS += progs.h
92noinst_HEADERS += s_apps.h
93noinst_HEADERS += testdsa.h
94noinst_HEADERS += testrsa.h
95noinst_HEADERS += timeouts.h
96 91
97EXTRA_DIST = CMakeLists.txt 92EXTRA_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;