aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-06-03 17:05:12 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-06-03 17:05:12 -0700
commit9e1ba43543804b628478f7aaa47f991697ee4f73 (patch)
tree31bf0c32045b7e9f49df89176219ceeed12be985
parent8507e150ba0071d6bd0790cb0dc23a03260ed791 (diff)
Fix compilation on mac
-rw-r--r--test/core/network_benchmarks/low_level_ping_pong.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/network_benchmarks/low_level_ping_pong.c b/test/core/network_benchmarks/low_level_ping_pong.c
index 7d74d0e078..78a0eef1a2 100644
--- a/test/core/network_benchmarks/low_level_ping_pong.c
+++ b/test/core/network_benchmarks/low_level_ping_pong.c
@@ -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);