Remove dummy headers for Windows
This commit is contained in:
parent
8df031d336
commit
fc5734c339
10 changed files with 30 additions and 29 deletions
|
@ -552,7 +552,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
create_test_app(test-server
|
||||
"test-server/test-server.c"
|
||||
""
|
||||
"${WIN32_HELPERS_PATH}/netdb.h;${WIN32_HELPERS_PATH}/strings.h;${WIN32_HELPERS_PATH}/unistd.h;${WIN32_HELPERS_PATH}/websock-w32.h")
|
||||
"${WIN32_HELPERS_PATH}/websock-w32.h")
|
||||
endif()
|
||||
|
||||
#
|
||||
|
@ -562,7 +562,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
create_test_app(test-server-extpoll
|
||||
"test-server/test-server.c"
|
||||
""
|
||||
"${WIN32_HELPERS_PATH}/netdb.h;${WIN32_HELPERS_PATH}/strings.h;${WIN32_HELPERS_PATH}/unistd.h;${WIN32_HELPERS_PATH}/websock-w32.h")
|
||||
"${WIN32_HELPERS_PATH}/websock-w32.h")
|
||||
# Set defines for this executable only.
|
||||
set_property(
|
||||
TARGET test-server-extpoll
|
||||
|
@ -671,7 +671,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
create_test_app(test-fraggle
|
||||
"test-server/test-fraggle.c"
|
||||
""
|
||||
"${WIN32_HELPERS_PATH}/unistd.h;${WIN32_HELPERS_PATH}/sys/time.h")
|
||||
"")
|
||||
endif()
|
||||
|
||||
#
|
||||
|
@ -681,7 +681,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
create_test_app(test-ping
|
||||
"test-server/test-ping.c"
|
||||
""
|
||||
"${WIN32_HELPERS_PATH}/unistd.h;${WIN32_HELPERS_PATH}/sys/time.h")
|
||||
"")
|
||||
endif()
|
||||
#
|
||||
# test-echo
|
||||
|
@ -690,7 +690,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
create_test_app(test-echo
|
||||
"test-server/test-echo.c"
|
||||
""
|
||||
"${WIN32_HELPERS_PATH}/unistd.h;${WIN32_HELPERS_PATH}/sys/time.h")
|
||||
"")
|
||||
endif()
|
||||
|
||||
endif(NOT LWS_WITHOUT_CLIENT)
|
||||
|
|
|
@ -21,11 +21,14 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef CMAKE_BUILD
|
||||
#include "lws_config.h"
|
||||
#endif
|
||||
|
|
|
@ -24,17 +24,17 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <assert.h>
|
||||
#ifdef WIN32
|
||||
#else
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <syslog.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef CMAKE_BUILD
|
||||
#include "lws_config.h"
|
||||
#endif
|
||||
|
|
|
@ -21,10 +21,13 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef CMAKE_BUILD
|
||||
#include "lws_config.h"
|
||||
|
|
|
@ -21,26 +21,24 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef WIN32
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <netdb.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <poll.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef CMAKE_BUILD
|
||||
#include "lws_config.h"
|
||||
#endif
|
||||
|
||||
#include <netdb.h>
|
||||
|
||||
#include "../lib/libwebsockets.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -24,25 +24,24 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <assert.h>
|
||||
#ifdef WIN32
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#ifdef EXTERNAL_POLL
|
||||
#define poll WSAPoll
|
||||
#endif
|
||||
|
||||
#else // NOT WIN32
|
||||
#else
|
||||
#include <syslog.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#include "../lib/libwebsockets.h"
|
||||
|
||||
static int close_testing;
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
// Left blank for win32
|
|
@ -1 +0,0 @@
|
|||
// left blank
|
Loading…
Add table
Reference in a new issue