Remove dummy headers for Windows

This commit is contained in:
Patrick Gansterer 2014-03-29 07:43:38 +01:00
parent 8df031d336
commit fc5734c339
10 changed files with 30 additions and 29 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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"
/*

View file

@ -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;

View file

@ -1 +0,0 @@
// Left blank for win32

View file

@ -1 +0,0 @@
// left blank