openbsd-ports/benchmarks/wrk/patches/patch-src_config_h
fcambus cf46cf7630 Import benchmarks/wrk.
wrk is a modern HTTP benchmarking tool capable of generating significant
load when run on a single multi-core CPU. It combines a multithreaded design
with scalable event notification systems such as epoll and kqueue.

OK jca@
2018-04-25 11:24:14 +00:00

15 lines
374 B
Plaintext

$OpenBSD: patch-src_config_h,v 1.1.1.1 2018/04/25 11:24:14 fcambus Exp $
Index: src/config.h
--- src/config.h.orig
+++ src/config.h
@@ -1,7 +1,7 @@
#ifndef CONFIG_H
#define CONFIG_H
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
#define HAVE_KQUEUE
#elif defined(__linux__)
#define HAVE_EPOLL