diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-05-02 16:12:14 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-05-02 18:25:13 +0200 |
commit | d83850abe2c393352ec65c32b3bcec7c33be7cd0 (patch) | |
tree | bd7cfa0e62d0a2571559cf1934a0e8169e47136e /buildtools/wafsamba | |
parent | 7cbcf652c51d283ac55b898c60ea39e45a48e5dd (diff) | |
download | samba-d83850abe2c393352ec65c32b3bcec7c33be7cd0.tar.gz samba-d83850abe2c393352ec65c32b3bcec7c33be7cd0.tar.xz samba-d83850abe2c393352ec65c32b3bcec7c33be7cd0.zip |
build: uname on opensolaris returns 1 for success
check for -1 as failure, not 0 for success
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_conftests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index ecdf8e7abd2..e709929ba96 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -267,7 +267,7 @@ def CHECK_UNAME(conf): for v in "sysname machine release version".split(): if not conf.CHECK_CODE(''' struct utsname n; - if (uname(&n) != 0) return -1; + if (uname(&n) == -1) return -1; printf("%%s", n.%s); ''' % v, define='SYSTEM_UNAME_%s' % v.upper(), |