]> git.sesse.net Git - vlc/commitdiff
Fix header inclusion. VLC does not check for sys/socket.h
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 17:03:16 +0000 (17:03 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 17:03:16 +0000 (17:03 +0000)
configure.ac

index c98b3b3bafeb2650f40ed78d4465a36448019dd0..39a9e172956e32e9a02a6aab0f6d7e8e3b2007c6 100644 (file)
@@ -530,13 +530,11 @@ AH_TEMPLATE(socklen_t, [Define to `int' if <sys/socket.h> does not define.])
 AC_CACHE_CHECK([for socklen_t in sys/socket.h],
 ac_cv_type_socklen_t,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-[#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#elif HAVE_WINSOCK2_H
+[#include <sys/types.h>
+#ifdef WIN32
 # include <winsock2.h>
+#else
+# include <sys/socket.h>
 #endif]], [[socklen_t len; len = 0;]])],
 ac_cv_type_socklen_t=yes,
 ac_cv_type_socklen_t=no)])