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

David Fuhrmann david.fuhrmann at gmail.com
Tue Sep 9 18:18:50 CEST 2014


Am 09.09.2014 um 08:55 schrieb Rémi Denis-Courmont <remi at remlab.net>:

> 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.

Hi Remi,

I wasn’t sure about the ifdefs. If you say they are not needed, I’ll remove them of course.

With best regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140909/576334a2/attachment.html>


More information about the vlc-devel mailing list