This updates the feature flags for NetBSD.

NetBSD 8 adds support for accept4().

Enable getaddrinfo().


diff --git a/INSTALL b/INSTALL
index 0263cf34c..2ae98bf6b 100644
--- a/INSTALL
+++ b/INSTALL
@@ -377,7 +377,7 @@ and assign it to the TARGET variable :
   - solaris             for Solaris 10 and above
   - freebsd             for FreeBSD 10 and above
   - dragonfly           for DragonFlyBSD 4.3 and above
-  - netbsd              for NetBSD
+  - netbsd              for NetBSD 8 and above
   - osx                 for Mac OS/X
   - openbsd             for OpenBSD 6.3 and above
   - aix51               for AIX 5.1
diff --git a/Makefile b/Makefile
index 4aabe34dc..1c64593d0 100644
--- a/Makefile
+++ b/Makefile
@@ -393,10 +393,11 @@ ifeq ($(TARGET),openbsd)
     USE_GETADDRINFO)
 endif
 
-# NetBSD
+# NetBSD 8 and above
 ifeq ($(TARGET),netbsd)
   set_target_defaults = $(call default_opts, \
-    USE_POLL USE_TPROXY USE_KQUEUE)
+    USE_POLL USE_TPROXY USE_THREAD USE_KQUEUE USE_ACCEPT4 USE_CLOSEFROM   \
+    USE_GETADDRINFO)
 endif
 
 # AIX 5.1 only

Reply via email to