Remove dummy headers for Windows
authorPatrick Gansterer <paroga@paroga.com>
Sat, 29 Mar 2014 06:43:38 +0000 (07:43 +0100)
committerPatrick Gansterer <paroga@paroga.com>
Sat, 29 Mar 2014 06:43:38 +0000 (07:43 +0100)
CMakeLists.txt
test-server/test-client.c
test-server/test-echo.c
test-server/test-fraggle.c
test-server/test-ping.c
test-server/test-server.c
win32port/win32helpers/netdb.h [deleted file]
win32port/win32helpers/strings.h [deleted file]
win32port/win32helpers/sys/time.h [deleted file]
win32port/win32helpers/unistd.h [deleted file]

index fec4cd5..9d02dce 100644 (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)
index 4c2b07a..75fd133 100644 (file)
 
 #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
index 0979439..3d48349 100644 (file)
 
 #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 <signal.h>
+
+#ifndef _WIN32
 #include <syslog.h>
+#include <sys/time.h>
+#include <unistd.h>
 #endif
-#include <signal.h>
 
 #ifdef CMAKE_BUILD
 #include "lws_config.h"
index 01b0819..578f947 100644 (file)
 
 #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"
index 098981c..fb7bff5 100644 (file)
 
 #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"
 
 /*
index 481dff6..efe5f6d 100644 (file)
 
 #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;
diff --git a/win32port/win32helpers/netdb.h b/win32port/win32helpers/netdb.h
deleted file mode 100644 (file)
index 45304b7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-// Left blank for win32
\ No newline at end of file
diff --git a/win32port/win32helpers/strings.h b/win32port/win32helpers/strings.h
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/win32port/win32helpers/sys/time.h b/win32port/win32helpers/sys/time.h
deleted file mode 100644 (file)
index 258af63..0000000
+++ /dev/null
@@ -1 +0,0 @@
-// left blank
\ No newline at end of file
diff --git a/win32port/win32helpers/unistd.h b/win32port/win32helpers/unistd.h
deleted file mode 100644 (file)
index e69de29..0000000