$OpenBSD: patch-buildtools_wafsamba_wscript,v 1.5 2021/05/12 23:33:24 jca Exp $

Add a hack to force addition of -I/usr/include before any other include path discovered.

Index: buildtools/wafsamba/wscript
--- buildtools/wafsamba/wscript.orig
+++ buildtools/wafsamba/wscript
@@ -88,6 +88,11 @@ def options(opt):
                    help=("Disable use of gettext"),
                    action="store_true", dest='disable_gettext', default=False)
 
+    opt.add_option('--with-dummy',
+                   help='dummy option to inject /usr/include',
+                   action='store', dest='libc_location', default='/usr',
+                   match = ['Checking for header sys/types.h'])
+
     gr = opt.option_group('developer options')
 
     gr.add_option('-C',
