diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-12-06 18:07:18 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-01-02 14:12:27 +0100 |
commit | b7ae41e6ca133e08f1dc62bd49436f51f490f46b (patch) | |
tree | 1ada84953d140ba1d5c3d9698a6dc8306d6c16c7 /buildtools | |
parent | 2487a423b7b5ae153690564202a582de5d8334aa (diff) | |
download | samba-b7ae41e6ca133e08f1dc62bd49436f51f490f46b.tar.gz |
lib replace: Fix detection of features
If configure script is executed with stricter cflags
"-Werrorr=implicit-function-declaration -Werror=implicit-int"
then detection of few features will fail.
Checking for C99 vsnprintf : not found
Checking for HAVE_SHARED_MMAP : not found
Checking for HAVE_MREMAP : not found
lib/replace/test/shared_mmap.c:18:1:
error: return type defaults to ‘int’ [-Werror=implicit-int]
main()
^~~~
lib/replace/test/shared_mmap.c: In function ‘main’:
lib/replace/test/shared_mmap.c:25:16:
error: implicit declaration of function ‘exit’
[-Werror=implicit-function-declaration]
if (fd == -1) exit(1);
^~~~
lib/replace/test/shared_mmap.c:25:16:
warning: incompatible implicit declaration of built-in function ‘exit’
lib/replace/test/shared_mmap.c:25:16:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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')
0 files changed, 0 insertions, 0 deletions