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 ) );
VLC_EXPORT( int, vlc_mkstemp, ( char * ) );
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
......@@ -77,6 +77,11 @@ struct msghdr
# define net_errno errno
#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
extern "C" {
# endif
......
......@@ -33,7 +33,6 @@
#include <assert.h>
#include <vlc_network.h>
#include <vlc_fs.h>
#include <vlc_tls.h>
#include <vlc_acl.h>
#include <vlc_strings.h>
......
......@@ -52,7 +52,6 @@
#endif
#include <vlc_network.h>
#include <vlc_fs.h>
#ifndef INADDR_ANY
# define INADDR_ANY 0x00000000
......
......@@ -43,7 +43,6 @@
#endif
#include <vlc_network.h>
#include <vlc_fs.h>
#if defined (WIN32) || defined (UNDER_CE)
# undef EINPROGRESS
# define EINPROGRESS WSAEWOULDBLOCK
......
......@@ -617,6 +617,8 @@ int vlc_dup (int oldfd)
return newfd;
}
#include <vlc_network.h>
/**
* Creates a socket file descriptor. The new file descriptor has the
* 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