configure: Add missing <string.h> to avoid bogus warning
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 1 May 2017 18:48:15 +0000 (21:48 +0300)
committerJens Axboe <axboe@fb.com>
Mon, 1 May 2017 20:47:16 +0000 (14:47 -0600)
This warning has nothing to do with what the code is trying to test.
This isn't testing if memset(3) is available, so just silence the
warning by including an appropriate header.

--
 # uname
 Linux
 # grep memset config.log -A2 | head -3
 /tmp/fio-conf-23441-58170-6422.c:5:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    memset(&cid, 0, sizeof(cid));
    ^~~~~~

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index d95d7cefaead266768d49b79ea399c382035b337..255fa2217270f8eb050d3d92b052dc9a3656785b 100755 (executable)
--- a/configure
+++ b/configure
@@ -904,6 +904,7 @@ if test "$clockid_t" != "yes" ; then
 fi
 cat > $TMPC << EOF
 #include <time.h>
 fi
 cat > $TMPC << EOF
 #include <time.h>
+#include <string.h>
 int main(int argc, char **argv)
 {
   volatile clockid_t cid;
 int main(int argc, char **argv)
 {
   volatile clockid_t cid;