Browse code

Also include sys/types.h when testing for socklen_t, since unfortunately OpenBSD 4.4 defines it there (and sys/socket.h does not compile without it).

Originally committed as revision 16084 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger authored on 2008/12/13 07:43:25
Showing 1 changed files
... ...
@@ -1960,7 +1960,7 @@ texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html
1960 1960
 # Network check
1961 1961
 
1962 1962
 if enabled network; then
1963
-    check_type sys/socket.h socklen_t
1963
+    check_type "sys/types.h sys/socket.h" socklen_t
1964 1964
     # Prefer arpa/inet.h over winsock2
1965 1965
     if check_header arpa/inet.h ; then
1966 1966
         check_func closesocket