mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-26 04:09:30 +03:00
Fixed conflict with system CPU_COUNT macro
This commit is contained in:
@@ -36,11 +36,11 @@
|
||||
#endif /* MHD_HTTPS_REQUIRE_GRYPT */
|
||||
#include "tls_test_common.h"
|
||||
|
||||
#if defined(CPU_COUNT) && (CPU_COUNT + 0) < 4
|
||||
#undef CPU_COUNT
|
||||
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 4
|
||||
#undef MHD_CPU_COUNT
|
||||
#endif
|
||||
#if ! defined(CPU_COUNT)
|
||||
#define CPU_COUNT 4
|
||||
#if ! defined(MHD_CPU_COUNT)
|
||||
#define MHD_CPU_COUNT 4
|
||||
#endif
|
||||
|
||||
extern const char srv_key_pem[];
|
||||
@@ -105,7 +105,7 @@ test_parallel_clients (void *cls, int port, const char *cipher_suite,
|
||||
int curl_proto_version)
|
||||
{
|
||||
int i;
|
||||
int client_count = (CPU_COUNT - 1);
|
||||
int client_count = (MHD_CPU_COUNT - 1);
|
||||
void *client_thread_ret;
|
||||
pthread_t client_arr[client_count];
|
||||
struct https_test_data client_args =
|
||||
|
||||
Reference in New Issue
Block a user