Skip to content

Commit

Permalink
Merge pull request grpc#1902 from ctiller/not-everything-is-linux
Browse files Browse the repository at this point in the history
Fix compilation on mac
  • Loading branch information
vjpai committed Jun 8, 2015
2 parents cce361f + 9e1ba43 commit 74ff607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/core/network_benchmarks/low_level_ping_pong.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 74ff607

Please sign in to comment.