2021-03-12 16:23:32 +00:00
|
|
|
#ifndef __MINGW32__
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#endif
|
|
|
|
#include <string.h>
|
|
|
|
#include "windoze.h"
|
|
|
|
#include "socket.h"
|
|
|
|
|
2021-04-27 17:39:42 +00:00
|
|
|
int socket_accept4_makenonblocking(int s,char ip[4],uint16 *port) {
|
2021-04-22 11:04:41 +00:00
|
|
|
return socket_accept4_flags(s,ip,port,SOCKET_CLOEXEC);
|
2021-03-12 16:23:32 +00:00
|
|
|
}
|