lib/memcpy: fix warning on FreeBSD
authorTomohiro Kusumi <tkusumi@tuxera.com>
Fri, 29 Dec 2017 13:38:23 +0000 (15:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Dec 2017 15:13:10 +0000 (08:13 -0700)
commitc36173ead16cf598cdc453a9a399ea1f4dc3913c
tree7efead38ecd92ac63b039a5f6afdd963dda03d98
parente38feac48ffb7a45c847cabd31ab5eab7fe05a4e
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 <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio_time.h