* [PATCH] Make configure tests pass pickier compiler options.
@ 2013-12-20 7:00 castor.fu
2013-12-21 22:00 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: castor.fu @ 2013-12-20 7:00 UTC (permalink / raw)
To: fio; +Cc: Castor Fu
From: Castor Fu <castor@alumni.caltech.edu>
Signed-off-by: Castor Fu <castor@alumni.caltech.edu>
---
configure | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index 0f1acd0..2dda142 100755
--- a/configure
+++ b/configure
@@ -571,6 +571,7 @@ echo "rdmacm $rdmacm"
linux_fallocate="no"
cat > $TMPC << EOF
#include <stdio.h>
+#include <fcntl.h>
#include <linux/falloc.h>
int main(int argc, char **argv)
{
@@ -887,8 +888,7 @@ cat > $TMPC << EOF
#include <string.h>
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 <unistd.h>
#include <stdio.h>
+#include <getopt.h>
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 <stdio.h>
-static int __thread ret;
+static __thread int ret;
int main(int argc, char **argv)
{
return ret;
--
1.7.11.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-21 22:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 7:00 [PATCH] Make configure tests pass pickier compiler options castor.fu
2013-12-21 22:00 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox