s3-waf: try to fix the {net|free|open}bsd build.
authorGünther Deschner <gd@samba.org>
Thu, 10 Feb 2011 22:37:52 +0000 (23:37 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 10 Feb 2011 22:46:45 +0000 (23:46 +0100)
Guenther

source3/wscript

index 78e6d2d476208f7750fd38b3988f269f369d55bd..72a846616e2c150841299f97b1b0c7529fdf47f0 100644 (file)
@@ -287,6 +287,7 @@ utimensat vsyslog _write __write __xstat
     # checks for OSes.
     import sys
     host_os = sys.platform
+    print "building on %s" % host_os
 
     # Python doesn't have case switches... :/
     # FIXME: original was *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu | *qnx*)
@@ -307,6 +308,11 @@ utimensat vsyslog _write __write __xstat
         if conf.CHECK_HEADERS('sunacl.h'):
             conf.define('HAVE_FREEBSD_SUNACL_H', '1')
             conf.CHECK_FUNCS_IN('acl', 'sunacl')
+        conf.DEFINE('STAT_ST_BLOCKSIZE', '512')
+    elif (host_os.rfind('netbsd') > -1):
+        conf.DEFINE('STAT_ST_BLOCKSIZE', '512')
+    elif (host_os.rfind('openbsd') > -1):
+        conf.DEFINE('STAT_ST_BLOCKSIZE', '512')
     # FIXME: Add more checks here.
     else:
         print "Unknown host_os '%s', please report this to samba-technical@samba.org" % host_os