Skip to content

Commit 8d533f0

Browse files
committed
fix fnctl not included
1 parent 7ff0f23 commit 8d533f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/relay.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <arpa/inet.h>
88
#include <netdb.h>
99
#include <errno.h>
10+
#include <fcntl.h>
11+
1012
#ifndef SOCKET
1113
#define SOCKET int
1214
#endif
@@ -81,7 +83,6 @@ void vrx_relay_connect() {
8183
} else {
8284
#ifndef WIN32
8385
fcntl(vrx_relay_socket, F_SETFL, O_NONBLOCK); // set to non-blocking
84-
fcntl(vrx_relay_socket, F_SETFL, O_ASYNC); // set to asynchronous I/O
8586
#else
8687
u_long iMode = 1;
8788
ioctlsocket(vrx_relay_socket, FIONBIO, &iMode);

0 commit comments

Comments
 (0)