some minor fixes
This commit is contained in:
parent
a700e7ac41
commit
8273f0127a
@ -26,6 +26,7 @@
|
||||
#include <hio-sck.h>
|
||||
#include "hio-prv.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
struct hio_svc_dns_t
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include <hio-sck.h>
|
||||
#include "hio-prv.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
@ -104,7 +104,7 @@ int hio_sys_initmux (hio_t* hio)
|
||||
{
|
||||
#if defined(FD_CLOEXEC)
|
||||
int flags = fcntl(mux->kq, F_GETFD);
|
||||
if (flags >= 0) fcntl (mux->kq, F_SETFD, flag | FD_CLOEXEC);
|
||||
if (flags >= 0) fcntl (mux->kq, F_SETFD, flags | FD_CLOEXEC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "hio-prv.h"
|
||||
|
||||
#if defined(HAVE_SYS_EVENT_H) && defined(HAVE_KQUEUE) && defined(HAVE_KEVENT)
|
||||
# include <sys/types.h>
|
||||
# include <sys/event.h>
|
||||
# define USE_KQUEUE
|
||||
#elif defined(HAVE_SYS_EPOLL_H)
|
||||
|
Loading…
Reference in New Issue
Block a user