/[gentoo-x86]/sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-gettimeofday.patch
Gentoo

Contents of /sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-gettimeofday.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Feb 24 17:20:35 2012 UTC (3 years ago) by vapier
Branch: MAIN
Version bump #405331 by teidakankan.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)

1 From 19a60067bedc4083af035fc2ef531d7114c5eed4 Mon Sep 17 00:00:00 2001
2 From: Mike Frysinger <vapier@gentoo.org>
3 Date: Fri, 24 Feb 2012 12:07:21 -0500
4 Subject: [PATCH] libext2fs: include sys/time.h for gettimeofday()
5
6 Building on my glibc-2.15 system hits a warning:
7 gen_bitmap64.c: In function 'ext2fs_alloc_generic_bmap':
8 gen_bitmap64.c:127:2: warning: implicit declaration of function
9 'gettimeofday' [-Wimplicit-function-declaration]
10
11 Include sys/time.h if it's available for the prototype.
12
13 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 ---
15 lib/ext2fs/gen_bitmap64.c | 3 +++
16 1 files changed, 3 insertions(+), 0 deletions(-)
17
18 diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c
19 index bf1a76b..fa8d7b7 100644
20 --- a/lib/ext2fs/gen_bitmap64.c
21 +++ b/lib/ext2fs/gen_bitmap64.c
22 @@ -25,6 +25,9 @@
23 #if HAVE_SYS_TYPES_H
24 #include <sys/types.h>
25 #endif
26 +#ifdef HAVE_SYS_TIME_H
27 +#include <sys/time.h>
28 +#endif
29
30 #include "ext2_fs.h"
31 #include "ext2fsP.h"
32 --
33 1.7.8.4

  ViewVC Help
Powered by ViewVC 1.1.20