fix socket.c
This commit is contained in:
parent
9da166ea34
commit
3b3b50b7ec
@ -21,6 +21,8 @@
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define IS_SOCKET_ERROR(a) ((a)<0)
|
#define IS_SOCKET_ERROR(a) ((a)<0)
|
||||||
typedef int socket_t;
|
typedef int socket_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user