Fixed HTTPS tests under Hurd

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2017-06-19 23:57:01 +03:00
1 parent 113fc177aa
commit 6364c4700d
1 file changed
+4
+4
View File
@@ -269,7 +269,11 @@ gen_test_file_url (char *url, int port)
char *doc_path;
size_t doc_path_len;
/* setup test file path, url */
#ifdef PATH_MAX
doc_path_len = PATH_MAX > 4096 ? 4096 : PATH_MAX;
#else /* ! PATH_MAX */
doc_path_len = 4096;
#endif /* ! PATH_MAX */
if (NULL == (doc_path = malloc (doc_path_len)))
{
fprintf (stderr, MHD_E_MEM);