BUILD: Make use of accept4() on OpenBSD.
OpenBSD >= 5.7 supports accept4(). Older versions are not supported
anymore anyway.
Patch originally from Brad Smith.
diff --git a/Makefile b/Makefile
index 0ce4b32..f055a08 100644
--- a/Makefile
+++ b/Makefile
@@ -309,10 +309,11 @@
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