From ff96809b407550ba64b949b24c7c143ab72961ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 3 Nov 2011 20:47:39 +0200 Subject: [PATCH] Make vlc_network.h installable --- configure.ac | 2 +- include/vlc_network.h | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 5a4b0215cc..be981b1dfa 100644 --- a/configure.ac +++ b/configure.ac @@ -759,7 +759,7 @@ dnl Check for headers AC_CHECK_HEADERS([search.h]) AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h) AC_CHECK_HEADERS(fcntl.h sys/time.h sys/ioctl.h sys/stat.h) -AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h]) +AC_CHECK_HEADERS([arpa/inet.h netinet/udplite.h sys/eventfd.h]) AC_CHECK_HEADERS([net/if.h], [], [], [ #include diff --git a/include/vlc_network.h b/include/vlc_network.h index cd9ae909e3..64fbf89954 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -65,12 +65,7 @@ struct msghdr # endif #else # include -# ifdef HAVE_NETINET_IN_H -# include -# endif -# ifdef HAVE_ARPA_INET_H -# include -# endif +# include # include # define net_errno errno #endif @@ -179,9 +174,6 @@ VLC_API int vlc_poll(struct pollfd *fds, unsigned nfds, int timeout); # define SHUT_WR 1 # define SHUT_RDWR 2 # endif -#ifdef HAVE_UNISTD_H -#include -#endif # define net_Close( fd ) (void)close (fd) #endif -- 2.39.2