]> git.sesse.net Git - vlc/commitdiff
Make vlc_network.h installable
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Nov 2011 18:47:39 +0000 (20:47 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Nov 2011 18:47:52 +0000 (20:47 +0200)
configure.ac
include/vlc_network.h

index 5a4b0215cc090613d85b6344a33a9a95be0338ba..be981b1dfab825f11795837355ebf7fed74c7099 100644 (file)
@@ -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 <sys/types.h>
index cd9ae909e3a62752e6eae0fd6a3b3aa34c157e82..64fbf89954f48666736cd450cfd0510f1ae37a21 100644 (file)
@@ -65,12 +65,7 @@ struct msghdr
 #   endif
 #else
 #   include <sys/socket.h>
-#   ifdef HAVE_NETINET_IN_H
-#      include <netinet/in.h>
-#   endif
-#   ifdef HAVE_ARPA_INET_H
-#      include <arpa/inet.h>
-#   endif
+#   include <netinet/in.h>
 #   include <netdb.h>
 #   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 <unistd.h>
-#endif
 # define net_Close( fd ) (void)close (fd)
 #endif