diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-19 23:57:01 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-19 23:57:01 +0300 |
commit | 6364c4700d06232f2ea418b2146ba9e264d90086 (patch) | |
tree | 3269d1fed6df03515200551540bdbc764ff8aa48 | |
parent | 113fc177aaab1ecd2a6b49c6667ecdddcbf9cd01 (diff) | |
download | libmicrohttpd-6364c4700d06232f2ea418b2146ba9e264d90086.tar.gz libmicrohttpd-6364c4700d06232f2ea418b2146ba9e264d90086.zip |
Fixed HTTPS tests under Hurd
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index edbc785c..50cc318b 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -269,7 +269,11 @@ gen_test_file_url (char *url, int port) | |||
269 | char *doc_path; | 269 | char *doc_path; |
270 | size_t doc_path_len; | 270 | size_t doc_path_len; |
271 | /* setup test file path, url */ | 271 | /* setup test file path, url */ |
272 | #ifdef PATH_MAX | ||
272 | doc_path_len = PATH_MAX > 4096 ? 4096 : PATH_MAX; | 273 | doc_path_len = PATH_MAX > 4096 ? 4096 : PATH_MAX; |
274 | #else /* ! PATH_MAX */ | ||
275 | doc_path_len = 4096; | ||
276 | #endif /* ! PATH_MAX */ | ||
273 | if (NULL == (doc_path = malloc (doc_path_len))) | 277 | if (NULL == (doc_path = malloc (doc_path_len))) |
274 | { | 278 | { |
275 | fprintf (stderr, MHD_E_MEM); | 279 | fprintf (stderr, MHD_E_MEM); |