Merge pull request #1902 from ctiller/not-everything-is-linux

Fix compilation on mac
This commit is contained in:
Vijay Pai 2015-06-08 01:19:18 -07:00
commit 74ff607331
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,7 @@ static int set_socket_nonblocking(thread_args *args) {
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. */
static int epoll_setup(thread_args *args) {
int epoll_fd;
@ -258,6 +259,7 @@ static int epoll_setup(thread_args *args) {
}
return 0;
}
#endif
static void server_thread(thread_args *args) {
char *buf = malloc(args->msg_size);