Commit fa343f78 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Compile fix

parent 58781daf
...@@ -54,9 +54,4 @@ VLC_EXPORT( int, vlc_lstat, ( const char *filename, struct stat *buf ) ); ...@@ -54,9 +54,4 @@ VLC_EXPORT( int, vlc_lstat, ( const char *filename, struct stat *buf ) );
VLC_EXPORT( int, vlc_mkstemp, ( char * ) ); VLC_EXPORT( int, vlc_mkstemp, ( char * ) );
VLC_EXPORT( int, vlc_dup, ( int ) ); VLC_EXPORT( int, vlc_dup, ( int ) );
int vlc_socket (int, int, int, bool nonblock) LIBVLC_USED;
struct sockaddr;
VLC_EXPORT( int, vlc_accept, ( int, struct sockaddr *, socklen_t *, bool ) LIBVLC_USED );
#endif #endif
...@@ -77,6 +77,11 @@ struct msghdr ...@@ -77,6 +77,11 @@ struct msghdr
# define net_errno errno # define net_errno errno
#endif #endif
int vlc_socket (int, int, int, bool nonblock) LIBVLC_USED;
struct sockaddr;
VLC_EXPORT( int, vlc_accept, ( int, struct sockaddr *, socklen_t *, bool ) LIBVLC_USED );
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {
# endif # endif
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <assert.h> #include <assert.h>
#include <vlc_network.h> #include <vlc_network.h>
#include <vlc_fs.h>
#include <vlc_tls.h> #include <vlc_tls.h>
#include <vlc_acl.h> #include <vlc_acl.h>
#include <vlc_strings.h> #include <vlc_strings.h>
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#endif #endif
#include <vlc_network.h> #include <vlc_network.h>
#include <vlc_fs.h>
#ifndef INADDR_ANY #ifndef INADDR_ANY
# define INADDR_ANY 0x00000000 # define INADDR_ANY 0x00000000
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#endif #endif
#include <vlc_network.h> #include <vlc_network.h>
#include <vlc_fs.h>
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32) || defined (UNDER_CE)
# undef EINPROGRESS # undef EINPROGRESS
# define EINPROGRESS WSAEWOULDBLOCK # define EINPROGRESS WSAEWOULDBLOCK
......
...@@ -617,6 +617,8 @@ int vlc_dup (int oldfd) ...@@ -617,6 +617,8 @@ int vlc_dup (int oldfd)
return newfd; return newfd;
} }
#include <vlc_network.h>
/** /**
* Creates a socket file descriptor. The new file descriptor has the * Creates a socket file descriptor. The new file descriptor has the
* close-on-exec flag set. * close-on-exec flag set.
......
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