Skip to content
Snippets Groups Projects
Commit 9e1ba435 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix compilation on mac

parent 8507e150
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ static int set_socket_nonblocking(thread_args *args) { ...@@ -238,6 +238,7 @@ static int set_socket_nonblocking(thread_args *args) {
static int do_nothing(thread_args *args) { return 0; } static int do_nothing(thread_args *args) { return 0; }
#ifdef __linux__
/* Special case for epoll, where we need to create the fd ahead of time. */ /* Special case for epoll, where we need to create the fd ahead of time. */
static int epoll_setup(thread_args *args) { static int epoll_setup(thread_args *args) {
int epoll_fd; int epoll_fd;
...@@ -258,6 +259,7 @@ static int epoll_setup(thread_args *args) { ...@@ -258,6 +259,7 @@ static int epoll_setup(thread_args *args) {
} }
return 0; return 0;
} }
#endif
static void server_thread(thread_args *args) { static void server_thread(thread_args *args) {
char *buf = malloc(args->msg_size); char *buf = malloc(args->msg_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment