mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
Refactoring: do not define EPOLL_SUPPORT if epoll is disabled or not supported.
This commit is contained in:
1 parent
dfbda8ae1e
commit
9826ad54e0
13 files changed
+45
-46
No files matched your search
@@ -147,7 +147,7 @@ main (int argc, char *const *argv)
|
||||
|
||||
if (curl_uses_nss_ssl() == 0)
|
||||
aes256_sha = "rsa_aes_256_sha";
|
||||
#if EPOLL_SUPPORT
|
||||
#ifdef EPOLL_SUPPORT
|
||||
errorCount +=
|
||||
test_wrap ("single threaded daemon, single client, epoll", &test_single_client,
|
||||
NULL,
|
||||
@@ -163,7 +163,7 @@ main (int argc, char *const *argv)
|
||||
aes256_sha, CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY,
|
||||
srv_key_pem, MHD_OPTION_HTTPS_MEM_CERT,
|
||||
srv_self_signed_cert_pem, MHD_OPTION_END);
|
||||
#if EPOLL_SUPPORT
|
||||
#ifdef EPOLL_SUPPORT
|
||||
errorCount +=
|
||||
test_wrap ("single threaded daemon, parallel clients, epoll",
|
||||
&test_parallel_clients, NULL,
|
||||
|
||||
@@ -223,7 +223,7 @@ main (int argc, char *const *argv)
|
||||
fprintf (stderr, "Error: %s\n", strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
#if EPOLL_SUPPORT
|
||||
#ifdef EPOLL_SUPPORT
|
||||
if (0 != (errorCount = testExternalGet (MHD_USE_EPOLL_LINUX_ONLY)))
|
||||
fprintf (stderr, "Fail: %d\n", errorCount);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user