some minor fixes

This commit is contained in:
hyung-hwan 2022-06-22 06:44:28 +00:00
parent a700e7ac41
commit 8273f0127a
4 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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)