Whamcloud - gitweb
libext2fs: include sys/time.h for gettimeofday()
authorMike Frysinger <vapier@gentoo.org>
Mon, 27 Feb 2012 06:12:53 +0000 (01:12 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 27 Feb 2012 06:12:53 +0000 (01:12 -0500)
commitb96365f8c2e48b714332d038c6360f9993ac17e0
treec4700cf8e43395777b935e373e8ee4ce7b726619
parent6c9ce8a9b060ff81b537560a9880c569e60ca512
libext2fs: include sys/time.h for gettimeofday()

Building on my glibc-2.15 system hits a warning:
gen_bitmap64.c: In function 'ext2fs_alloc_generic_bmap':
gen_bitmap64.c:127:2: warning: implicit declaration of function
'gettimeofday' [-Wimplicit-function-declaration]

Include sys/time.h if it's available for the prototype.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/gen_bitmap64.c