Only check for socklen_t if network support is enabled.
authorDiego Biurrun <diego@biurrun.de>
Fri, 1 Aug 2008 18:27:59 +0000 (18:27 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 1 Aug 2008 18:27:59 +0000 (18:27 +0000)
Originally committed as revision 14498 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 9eeca21..8b5d8ac 100755 (executable)
--- a/configure
+++ b/configure
@@ -1754,12 +1754,11 @@ fi
 
 texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
 
-check_type sys/socket.h socklen_t
-
 ##########################################
 # Network check
 
 if enabled network; then
+    check_type sys/socket.h socklen_t
     # Prefer arpa/inet.h over winsock2
     if check_header arpa/inet.h ; then
         check_func closesocket