$OpenBSD: patch-lib_replace_wscript,v 1.9 2018/02/15 09:59:44 jca Exp $

Index: lib/replace/wscript
--- lib/replace/wscript.orig
+++ lib/replace/wscript
@@ -198,6 +198,8 @@ def configure(conf):
                         msg='Checking for IPV6_V6ONLY in linux/in6.h',
                         local_include=False)
 
+    # these headers need to be tested as a group on freebsd and openbsd
+    conf.CHECK_HEADERS(headers='sys/socket.h net/if.h', together=True)
     conf.CHECK_CODE('''
                        struct sockaddr_storage sa_store;
                        struct addrinfo *ai = NULL;
