From: Castor Fu Date: Fri, 20 Dec 2013 07:00:46 +0000 (-0800) Subject: Make configure tests pass pickier compiler options. X-Git-Tag: fio-2.1.5~44 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=aa6738a5d03f82424bf23cb308e4986019f14040 Make configure tests pass pickier compiler options. Signed-off-by: Castor Fu Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index 0f1acd0b..2dda1423 100755 --- a/configure +++ b/configure @@ -571,6 +571,7 @@ echo "rdmacm $rdmacm" linux_fallocate="no" cat > $TMPC << EOF #include +#include #include int main(int argc, char **argv) { @@ -887,8 +888,7 @@ cat > $TMPC << EOF #include int main(int argc, char **argv) { - strcasestr(NULL, NULL); - return 0; + return strcasestr(argv[0], argv[1]) != NULL; } EOF if compile_prog "" "" "strcasestr"; then @@ -902,6 +902,7 @@ getopt_long_only="no" cat > $TMPC << EOF #include #include +#include int main(int argc, char **argv) { int c = getopt_long_only(argc, argv, NULL, NULL, NULL); @@ -952,7 +953,7 @@ echo "socklen_t $socklen_t" tls_thread="no" cat > $TMPC << EOF #include -static int __thread ret; +static __thread int ret; int main(int argc, char **argv) { return ret;