]> granicus.if.org Git - libevent/commitdiff
test/bench*: prefix event-config.h macros after 0dda56a48e94
authorJan Beich <jbeich@FreeBSD.org>
Sat, 28 Jan 2017 16:28:57 +0000 (16:28 +0000)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 29 Jan 2017 20:02:41 +0000 (23:02 +0300)
test/bench.c
test/bench_cascade.c

index 214479c1ff3132c718c192d20f378966d76d93a9..c2c8983d09f4336505576d13c076b21a798986c2 100644 (file)
@@ -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");
index 2d85cc1f1038995ed250628be6f71a7023201259..1248835d7f7b4b2c40f60844e5eea6cf86242f9c 100644 (file)
@@ -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");