Commit ff96809b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Make vlc_network.h installable

parent 5ceabdd8
...@@ -759,7 +759,7 @@ dnl Check for headers ...@@ -759,7 +759,7 @@ dnl Check for headers
AC_CHECK_HEADERS([search.h]) AC_CHECK_HEADERS([search.h])
AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.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(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], [], [], AC_CHECK_HEADERS([net/if.h], [], [],
[ [
#include <sys/types.h> #include <sys/types.h>
......
...@@ -65,12 +65,7 @@ struct msghdr ...@@ -65,12 +65,7 @@ struct msghdr
# endif # endif
#else #else
# include <sys/socket.h> # include <sys/socket.h>
# ifdef HAVE_NETINET_IN_H # include <netinet/in.h>
# include <netinet/in.h>
# endif
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
# include <netdb.h> # include <netdb.h>
# define net_errno errno # define net_errno errno
#endif #endif
...@@ -179,9 +174,6 @@ VLC_API int vlc_poll(struct pollfd *fds, unsigned nfds, int timeout); ...@@ -179,9 +174,6 @@ VLC_API int vlc_poll(struct pollfd *fds, unsigned nfds, int timeout);
# define SHUT_WR 1 # define SHUT_WR 1
# define SHUT_RDWR 2 # define SHUT_RDWR 2
# endif # endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
# define net_Close( fd ) (void)close (fd) # define net_Close( fd ) (void)close (fd)
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment