1 |
vapier 12/02/24 17:20:35 |
2 |
|
3 |
Added: e2fsprogs-1.42.1-libext2fs-gettimeofday.patch |
4 |
e2fsprogs-1.42.1-libext2fs-config.patch |
5 |
Log: |
6 |
Version bump #405331 by teidakankan. |
7 |
|
8 |
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-gettimeofday.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-gettimeofday.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-gettimeofday.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: e2fsprogs-1.42.1-libext2fs-gettimeofday.patch |
17 |
=================================================================== |
18 |
From 19a60067bedc4083af035fc2ef531d7114c5eed4 Mon Sep 17 00:00:00 2001 |
19 |
From: Mike Frysinger <vapier@g.o> |
20 |
Date: Fri, 24 Feb 2012 12:07:21 -0500 |
21 |
Subject: [PATCH] libext2fs: include sys/time.h for gettimeofday() |
22 |
|
23 |
Building on my glibc-2.15 system hits a warning: |
24 |
gen_bitmap64.c: In function 'ext2fs_alloc_generic_bmap': |
25 |
gen_bitmap64.c:127:2: warning: implicit declaration of function |
26 |
'gettimeofday' [-Wimplicit-function-declaration] |
27 |
|
28 |
Include sys/time.h if it's available for the prototype. |
29 |
|
30 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
31 |
--- |
32 |
lib/ext2fs/gen_bitmap64.c | 3 +++ |
33 |
1 files changed, 3 insertions(+), 0 deletions(-) |
34 |
|
35 |
diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c |
36 |
index bf1a76b..fa8d7b7 100644 |
37 |
--- a/lib/ext2fs/gen_bitmap64.c |
38 |
+++ b/lib/ext2fs/gen_bitmap64.c |
39 |
@@ -25,6 +25,9 @@ |
40 |
#if HAVE_SYS_TYPES_H |
41 |
#include <sys/types.h> |
42 |
#endif |
43 |
+#ifdef HAVE_SYS_TIME_H |
44 |
+#include <sys/time.h> |
45 |
+#endif |
46 |
|
47 |
#include "ext2_fs.h" |
48 |
#include "ext2fsP.h" |
49 |
-- |
50 |
1.7.8.4 |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
1.1 sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-config.patch |
56 |
|
57 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-config.patch?rev=1.1&view=markup |
58 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/files/e2fsprogs-1.42.1-libext2fs-config.patch?rev=1.1&content-type=text/plain |
59 |
|
60 |
Index: e2fsprogs-1.42.1-libext2fs-config.patch |
61 |
=================================================================== |
62 |
From c699110b4b08e7fdee24d2b895403f15dad1502c Mon Sep 17 00:00:00 2001 |
63 |
From: Mike Frysinger <vapier@g.o> |
64 |
Date: Fri, 24 Feb 2012 12:08:43 -0500 |
65 |
Subject: [PATCH] libext2fs: include config.h for HAVE_xxx defines |
66 |
|
67 |
We check HAVE_UNISTD_H but haven't included config.h yet, so we end up |
68 |
hitting warnings about missing prototypes for close/read/etc... funcs. |
69 |
|
70 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
71 |
--- |
72 |
lib/ext2fs/mmp.c | 2 ++ |
73 |
1 files changed, 2 insertions(+), 0 deletions(-) |
74 |
|
75 |
diff --git a/lib/ext2fs/mmp.c b/lib/ext2fs/mmp.c |
76 |
index b27d9a4..49a11da 100644 |
77 |
--- a/lib/ext2fs/mmp.c |
78 |
+++ b/lib/ext2fs/mmp.c |
79 |
@@ -13,6 +13,8 @@ |
80 |
#define _GNU_SOURCE |
81 |
#endif |
82 |
|
83 |
+#include "config.h" |
84 |
+ |
85 |
#if HAVE_UNISTD_H |
86 |
#include <unistd.h> |
87 |
#endif |
88 |
-- |
89 |
1.7.8.4 |