check_include_file("sys/utsname.h" HAVE_SYS_UTSNAME_H)
check_include_file("sys/wait.h" HAVE_SYS_WAIT_H)
check_include_file("unistd.h" HAVE_UNISTD_H)
-check_include_file("windows.h" HAVE_WINDOWS_H)
-check_include_file("winsock2.h" HAVE_WINSOCK2_H)
#
# On Linux, check for some additional headers, which we need as a
#pragma warning( disable : 4996)
#endif
-#ifdef HAVE_WINSOCK2_H
+#ifdef _WIN32
#include <winsock2.h>
#endif
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H 1
-/* Define to 1 if you have the <windows.h> header file. */
-#cmakedefine HAVE_WINDOWS_H 1
-
-/* Define to 1 if you have the <winsock2.h> header file. */
-#cmakedefine HAVE_WINSOCK2_H 1
-
/* Name of package */
#cmakedefine PACKAGE
#ifdef _WIN32
#include <wsutil/unicode-utils.h>
#include <process.h> /* getpid */
-#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#endif
-#endif
#ifndef HAVE_STRPTIME
# include "wsutil/strptime.h"
#include <sys/socket.h> /* needed to define AF_ values on UNIX */
#endif
-#ifdef HAVE_WINSOCK2_H
-#include <winsock2.h> /* needed to define AF_ values on Windows */
-#endif
-
#ifdef _WIN32
-# include <ws2tcpip.h>
+#include <winsock2.h> /* needed to define AF_ values on Windows */
+#include <ws2tcpip.h>
#endif
#ifdef HAVE_C_ARES
# include <netinet/in.h>
#endif
-#ifdef HAVE_WINSOCK2_H
+#ifdef _WIN32
#include <winsock2.h>
#endif
# include <netdb.h>
#endif
-#ifdef HAVE_WINSOCK2_H
-# include <winsock2.h>
-#endif
-
#ifdef _WIN32
+# include <winsock2.h>
# include <ws2tcpip.h>
#endif
#include <errno.h>
-#ifdef HAVE_WINSOCK2_H
+#ifdef _WIN32
# include <winsock2.h>
#endif
#include <sys/socket.h>
#include <netinet/in.h>
#else
-#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#endif
-#endif
#define CHUNK_TYPE_LENGTH 1
#define CHUNK_FLAGS_LENGTH 1
#include <unistd.h>
#endif
-#ifdef HAVE_WINDOWS_H
+#ifdef _WIN32
#include <windows.h>
#endif
#include <glib.h>
#include <time.h>
-#ifdef HAVE_WINSOCK2_H
+#ifdef _WIN32
#include <winsock2.h>
#endif
#define __SOCKET_H__
#if defined(_WIN32) && !defined(__CYGWIN__)
- #ifdef HAVE_WINDOWS_H
- #include <windows.h>
- #endif
-
+ #include <windows.h>
#include <ws2tcpip.h>
-
- #ifdef HAVE_WINSOCK2_H
- #include <winsock2.h>
- #endif
-
+ #include <winsock2.h>
#include <process.h>
#define socket_handle_t SOCKET
#include <stdlib.h>
#include <errno.h>
-#ifdef HAVE_WINDOWS_H
-#include <windows.h>
-#endif
-
#ifdef _WIN32
+#include <windows.h>
#include <process.h> /* For getpid() */
#endif