diff options
Diffstat (limited to 'test/bench_cascade.c')
-rw-r--r-- | test/bench_cascade.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/bench_cascade.c b/test/bench_cascade.c index 2d85cc1f1038..29a3203ecdd6 100644 --- a/test/bench_cascade.c +++ b/test/bench_cascade.c @@ -35,7 +35,8 @@ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> -#else +#include <getopt.h> +#else /* _WIN32 */ #include <sys/socket.h> #include <sys/resource.h> #endif @@ -48,7 +49,6 @@ #include <unistd.h> #endif #include <errno.h> -#include <getopt.h> #include <event.h> #include <evutil.h> @@ -139,7 +139,7 @@ run_once(int num_pipes) int main(int argc, char **argv) { -#ifdef HAVE_SETRLIMIT +#ifdef EVENT__HAVE_SETRLIMIT struct rlimit rl; #endif int i, c; @@ -162,7 +162,7 @@ main(int argc, char **argv) } } -#ifdef HAVE_SETRLIMIT +#ifdef EVENT__HAVE_SETRLIMIT rl.rlim_cur = rl.rlim_max = num_pipes * 2 + 50; if (setrlimit(RLIMIT_NOFILE, &rl) == -1) { perror("setrlimit"); |