[vlc-devel] [PATCH] configure.ac: fix check for net/if.h on osx

Rémi Denis-Courmont remi at remlab.net
Tue Sep 9 08:55:39 CEST 2014


Le 2014-09-08 20:35, david.fuhrmann at gmail.com a écrit :
> From: David Fuhrmann <dfuhrmann at videolan.org>
>
> ---
>  configure.ac | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 2787391..d346d7e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -754,7 +754,16 @@ AC_SUBST(LIBPTHREAD)
>
>  dnl Check for headers
>  dnl  POSIX
> -AC_CHECK_HEADERS([arpa/inet.h net/if.h pthread.h search.h syslog.h
> sys/shm.h])
> +AC_CHECK_HEADERS([arpa/inet.h pthread.h search.h syslog.h sys/shm.h
> sys/socket.h])
> +AC_CHECK_HEADERS([net/if.h], [], [],
> +[
> +#ifdef HAVE_SYS_TYPES_H
> +# include <sys/types.h>
> +#endif
> +#ifdef HAVE_SYS_SOCKET_H
> +# include <sys/socket.h>
> +#endif
> +])

Those ifdefs still look cargo culted to me.

>  dnl  BSD
>  AC_CHECK_HEADERS([netinet/udplite.h sys/param.h sys/mount.h])
>  dnl  GNU/Linux

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list