[FFmpeg-devel] [PATCH] accept socklen_t in sys/types.h

Diego Biurrun diego
Fri Dec 12 23:30:23 CET 2008


On Fri, Dec 12, 2008 at 11:22:37PM +0100, Reimar D?ffinger wrote:
> in another case of "doing things different just to annoy",
> OpenBSD has socklen_t only in sys/types.h and while sys/socket.h
> requires that header it does not include it.
> That does not cause any problems in the actual code, but the
> autodetection is broken, which this patch fixes:
> --- configure   (revision 16083)
> +++ configure   (working copy)
> @@ -1960,7 +1957,7 @@
>  # Network check
>  
>  if enabled network; then
> -    check_type sys/socket.h socklen_t
> +    check_type "sys/types.h sys/socket.h" socklen_t
>      # Prefer arpa/inet.h over winsock2
>      if check_header arpa/inet.h ; then
>          check_func closesocket
> 
> 
> Objections or ok to apply?

OK

Diego




More information about the ffmpeg-devel mailing list