From c36173ead16cf598cdc453a9a399ea1f4dc3913c Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Fri, 29 Dec 2017 15:38:23 +0200 Subject: [PATCH] lib/memcpy: fix warning on FreeBSD Include struct timeval via sys/time.h. http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/time.h.html -- In file included from lib/memcpy.c:7: lib/../fio_time.h:14:45: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility] extern uint64_t mtime_since_tv(const struct timeval *, const struct timeval *); Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- fio_time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/fio_time.h b/fio_time.h index ee8087e0..8b4bb255 100644 --- a/fio_time.h +++ b/fio_time.h @@ -2,6 +2,7 @@ #define FIO_TIME_H #include +#include #include "lib/types.h" struct thread_data; -- 2.25.1