| Submitter | Mike Frysinger |
|---|---|
| Date | Feb. 24, 2012, 5:18 p.m. |
| Message ID | <1330103888-7005-1-git-send-email-vapier@gentoo.org> |
| Download | mbox | patch |
| Permalink | /patch/142954/ |
| State | Accepted |
| Headers | show |
Comments
On Fri, Feb 24, 2012 at 12:18:07PM -0500, Mike Frysinger wrote: > 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> Thanks, applied. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c index bf1a76b..fa8d7b7 100644 --- a/lib/ext2fs/gen_bitmap64.c +++ b/lib/ext2fs/gen_bitmap64.c @@ -25,6 +25,9 @@ #if HAVE_SYS_TYPES_H #include <sys/types.h> #endif +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif #include "ext2_fs.h" #include "ext2fsP.h"
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> --- lib/ext2fs/gen_bitmap64.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)