diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-12-06 18:07:43 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-01-02 14:12:27 +0100 |
commit | be12f82cf1ca652b06995e84971c878621315d24 (patch) | |
tree | ee836b3f47ed9c5a0d8a021310a1d2142a718a91 /buildtools | |
parent | f4c0a750d4adebcf2342a44e85f04526c34268c8 (diff) | |
download | samba-be12f82cf1ca652b06995e84971c878621315d24.tar.gz |
WAF: Fix detection os sysname ...
Detection of sysname failed with stricter CFLAGS
"-Werrorr=implicit-function-declaration -Werror=implicit-int"
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
../test.c: In function ‘main’:
../test.c:8:32: error: implicit declaration of function ‘printf’
[-Werror=implicit-function-declaration]
printf("%s", n.sysname);
^~~~~~
../test.c:8:32: warning: incompatible implicit declaration
of built-in function ‘printf’
../test.c:8:32: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_conftests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index c9f8fdc0131..72e43216498 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -438,6 +438,7 @@ def CHECK_UNAME(conf): ret = True for v in "sysname machine release version".split(): if not conf.CHECK_CODE(''' + int printf(const char *format, ...); struct utsname n; if (uname(&n) == -1) return -1; printf("%%s", n.%s); |