diff options
author | Günther Deschner <gd@samba.org> | 2011-02-10 23:37:52 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-10 23:46:45 +0100 |
commit | 6bc6d5dcfb27fba14ea32b4c07cbce012386e9b5 (patch) | |
tree | c56c6e240af2e23e9bf429bc496418904b984665 /source3 | |
parent | 961f6295a9cdbaf63c83e49386c2732737c2d4df (diff) | |
download | samba-6bc6d5dcfb27fba14ea32b4c07cbce012386e9b5.tar.gz samba-6bc6d5dcfb27fba14ea32b4c07cbce012386e9b5.tar.bz2 samba-6bc6d5dcfb27fba14ea32b4c07cbce012386e9b5.zip |
s3-waf: try to fix the {net|free|open}bsd build.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 78e6d2d476..72a846616e 100644 --- a/source3/wscript +++ b/source3/wscript @@ -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 |