Commit d9cdaef0 authored by Steve Lhomme's avatar Steve Lhomme

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

Oh well...
parent 5f9aa754
......@@ -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 *);
......
......@@ -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
......
......@@ -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
......
Markdown is supported
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