[glib] Don't check for headers we include unconditionally



commit a0bcd63304c683d54e1d55203922a58de672b8f6
Author: Tor Lillqvist <tml iki fi>
Date:   Mon Dec 14 03:16:55 2009 +0200

    Don't check for headers we include unconditionally
    
    Don't bother checking for winsock2.h and mswsock.h in the configure
    script as we include these unconditionally when building for Windows
    anyway.

 config.h.win32.in |    3 ---
 configure.in      |    2 +-
 2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/config.h.win32.in b/config.h.win32.in
index d72ad80..b599474 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -598,9 +598,6 @@
 /* Define to 1 if you have the `wcslen' function. */
 #define HAVE_WCSLEN 1
 
-/* We are not checking for windows.h, why this? */
-#define HAVE_WINSOCK2_H 1
-
 /* Define if you have the 'wint_t' type. */
 #define HAVE_WINT_T 1
 
diff --git a/configure.in b/configure.in
index f7b1a0a..8902a92 100644
--- a/configure.in
+++ b/configure.in
@@ -1006,7 +1006,7 @@ if $glib_failed ; then
 fi
 
 AC_CHECK_FUNCS(getprotobyname_r endservent)
-AC_CHECK_HEADERS([netdb.h winsock2.h mswsock.h wspiapi.h])
+AC_CHECK_HEADERS([netdb.h wspiapi.h])
 
 # For gio/libasyncns
 if test $glib_native_win32 = no; then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]