Procházet zdrojové kódy

Compilation Fix

Conditionnal compilation around use of ws_client3_data. It is defined
only in case of  USE_WEBSOCKET
hansipie před 10 roky
rodič
revize
d0bd16794d
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      test/public_server.c

+ 2 - 0
test/public_server.c

@@ -1054,6 +1054,7 @@ START_TEST(test_request_handlers)
 	g_ctx = NULL;
 	g_ctx = NULL;
 	mg_stop(ctx);
 	mg_stop(ctx);
 
 
+#ifdef USE_WEBSOCKET
 	for (i = 0; i < 100; i++) {
 	for (i = 0; i < 100; i++) {
 		test_sleep(1);
 		test_sleep(1);
 		if (ws_client3_data.closed != 0) {
 		if (ws_client3_data.closed != 0) {
@@ -1062,6 +1063,7 @@ START_TEST(test_request_handlers)
 	}
 	}
 
 
 	ck_assert_int_eq(ws_client3_data.closed, 1);
 	ck_assert_int_eq(ws_client3_data.closed, 1);
+#endif
 }
 }
 END_TEST
 END_TEST