]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Make use of accept4() on OpenBSD.
authorDaniel Jakots <vigdis@chown.me>
Tue, 27 Sep 2016 17:22:21 +0000 (19:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Oct 2016 14:01:53 +0000 (16:01 +0200)
OpenBSD >= 5.7 supports accept4(). Older versions are not supported
anymore anyway.

Patch originally from Brad Smith.

Makefile
README

index 0ce4b325305ce53cb28e2502c360ee1594eb090d..f055a08272cb44ea5bbc42d01a79adf0c1d0e677 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -309,10 +309,11 @@ ifeq ($(TARGET),osx)
   USE_TPROXY     = implicit
 else
 ifeq ($(TARGET),openbsd)
-  # This is for OpenBSD >= 3.0
+  # This is for OpenBSD >= 5.7
   USE_POLL       = implicit
   USE_KQUEUE     = implicit
   USE_TPROXY     = implicit
+  USE_ACCEPT4    = implicit
 else
 ifeq ($(TARGET),netbsd)
   # This is for NetBSD
diff --git a/README b/README
index 16982e14d02e5c58af0f33466d6841eec75598e5..074a3b0f4193e9fc54ceed75c99d6f9abdbac4ea 100644 (file)
--- a/README
+++ b/README
@@ -43,7 +43,7 @@ and assign it to the TARGET variable :
   - freebsd     for FreeBSD 5 to 10 (others untested)
   - netbsd      for NetBSD
   - osx         for Mac OS/X
-  - openbsd     for OpenBSD 3.1 and above
+  - openbsd     for OpenBSD 5.7 and above
   - aix51       for AIX 5.1
   - aix52       for AIX 5.2
   - cygwin      for Cygwin