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
# 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
#include <assert.h>
#include <vlc_network.h>
-#include <vlc_fs.h>
#include <vlc_tls.h>
#include <vlc_acl.h>
#include <vlc_strings.h>
#endif
#include <vlc_network.h>
-#include <vlc_fs.h>
#ifndef INADDR_ANY
# define INADDR_ANY 0x00000000
#endif
#include <vlc_network.h>
-#include <vlc_fs.h>
#if defined (WIN32) || defined (UNDER_CE)
# undef EINPROGRESS
# define EINPROGRESS WSAEWOULDBLOCK
return newfd;
}
+#include <vlc_network.h>
+
/**
* Creates a socket file descriptor. The new file descriptor has the
* close-on-exec flag set.