WAF: Fix detection os sysname ...
authorLukas Slebodnik <lslebodn@redhat.com>
Tue, 6 Dec 2016 17:07:43 +0000 (18:07 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 2 Jan 2017 13:12:27 +0000 (14:12 +0100)
commitbe12f82cf1ca652b06995e84971c878621315d24
treeee836b3f47ed9c5a0d8a021310a1d2142a718a91
parentf4c0a750d4adebcf2342a44e85f04526c34268c8
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>
buildtools/wafsamba/samba_conftests.py