Browse Source

include: assume sys/socket.h is available everywhere except on Win32

Oh well...
pull/69/head
Steve Lhomme 8 years ago
parent
commit
d9cdaef0dd
  1. 4
      include/vlc_fixups.h
  2. 4
      include/vlc_interrupt.h
  3. 4
      include/vlc_network.h

4
include/vlc_fixups.h

@ -370,9 +370,9 @@ void swab (const void *, void *, ssize_t);
/* Socket stuff */
#ifndef HAVE_INET_PTON
# ifdef HAVE_SYS_SOCKET_H
# ifndef _WIN32
# include <sys/socket.h>
# elif defined(_WIN32)
#else
typedef int socklen_t;
# endif
int inet_pton(int, const char *, void *);

4
include/vlc_interrupt.h

@ -21,9 +21,9 @@
#ifndef VLC_INTERRUPT_H
# define VLC_INTERRUPT_H 1
# include <vlc_threads.h>
# ifdef HAVE_SYS_SOCKET_H
# ifndef _WIN32
# include <sys/socket.h> /* socklen_t */
# elif defined(_WIN32)
# else
# include <ws2tcpip.h>
# endif

4
include/vlc_network.h

@ -50,9 +50,7 @@
# define IPV6_V6ONLY 27
# endif
#else
# ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
# endif
# include <sys/socket.h>
# include <netinet/in.h>
# include <netdb.h>
# define net_errno errno

Loading…
Cancel
Save