X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=2dda1423e297f290fe5ef569951f3c98e8b11d0f;hb=b1b1be2a569fb9226fa1ebbfed91f34322ce1c9c;hp=0f1acd0b78e125f1d1d2301ff14d3b21eee6201e;hpb=e171fde52d9c2d0247365793d464a2a3c5e3af22;p=fio.git 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;