From: Jan Beich Date: Sat, 28 Jan 2017 16:28:57 +0000 (+0000) Subject: test/bench*: prefix event-config.h macros after 0dda56a48e94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77ec05e50dfe7b14aee664cdffaf58d080779f22;p=libevent test/bench*: prefix event-config.h macros after 0dda56a48e94 --- diff --git a/test/bench.c b/test/bench.c index 214479c1..c2c8983d 100644 --- a/test/bench.c +++ b/test/bench.c @@ -136,7 +136,7 @@ run_once(void) int main(int argc, char **argv) { -#ifdef HAVE_SETRLIMIT +#ifdef EVENT__HAVE_SETRLIMIT struct rlimit rl; #endif int i, c; @@ -167,7 +167,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"); diff --git a/test/bench_cascade.c b/test/bench_cascade.c index 2d85cc1f..1248835d 100644 --- a/test/bench_cascade.c +++ b/test/bench_cascade.c @@ -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");