Hi,

Here's a diff to make use of accept4() on OpenBSD. I just committed it
on OpenBSD [0] so it'd be nice to see it being committed upstream.

The patch is attached. I am not subscribed to the list so please keep me
in Cc.

[0]: https://marc.info/?l=openbsd-ports-cvs&m=147499593424771&w=2

Cheers,
Daniel
>From 75838ca0fbde471e0afeeb21580565e7c3f239d7 Mon Sep 17 00:00:00 2001
From: Daniel Jakots <[email protected]>
Date: Tue, 27 Sep 2016 19:22:21 +0200
Subject: [PATCH 1/1] BUILD: Make use of accept4() on OpenBSD. From Brad Smith
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0ce4b32..f055a08 100644
--- 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
-- 
2.9.3

Reply via email to