summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux/util-linux-native.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux/util-linux-native.patch')
-rw-r--r--meta/recipes-core/util-linux/util-linux/util-linux-native.patch54
1 files changed, 19 insertions, 35 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/util-linux-native.patch b/meta/recipes-core/util-linux/util-linux/util-linux-native.patch
index afe543c6e8..1f496dee21 100644
--- a/meta/recipes-core/util-linux/util-linux/util-linux-native.patch
+++ b/meta/recipes-core/util-linux/util-linux/util-linux-native.patch
@@ -16,24 +16,29 @@ Patches revert upstream changes in order to support older
16machines. 16machines.
17 17
18Signed-off-by: Mark Hatle <mark.hatle@windriver.com> 18Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
19Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
20---
21 configure.ac | 1 +
22 include/c.h | 7 +++++++
23 2 files changed, 8 insertions(+)
19 24
20Index: util-linux-2.24.1/configure.ac 25diff --git a/configure.ac b/configure.ac
21=================================================================== 26index eb3680b..93e015f 100644
22--- util-linux-2.24.1.orig/configure.ac 27--- a/configure.ac
23+++ util-linux-2.24.1/configure.ac 28+++ b/configure.ac
24@@ -302,6 +302,7 @@ AC_CHECK_FUNCS([ \ 29@@ -318,6 +318,7 @@ AC_CHECK_FUNCS([ \
25 llseek \ 30 llseek \
26 lseek64 \ 31 lseek64 \
27 mempcpy \ 32 mempcpy \
28+ mkostemp \ 33+ mkostemp \
29 nanosleep \ 34 nanosleep \
35 open_memstream \
30 personality \ 36 personality \
31 posix_fadvise \ 37diff --git a/include/c.h b/include/c.h
32Index: util-linux-2.24.1/include/c.h 38index e423e8b..cf33b94 100644
33=================================================================== 39--- a/include/c.h
34--- util-linux-2.24.1.orig/include/c.h 40+++ b/include/c.h
35+++ util-linux-2.24.1/include/c.h 41@@ -233,6 +233,13 @@ static inline int dirfd(DIR *d)
36@@ -236,6 +236,13 @@ static inline int dirfd(DIR *d)
37 #endif 42 #endif
38 43
39 /* 44 /*
@@ -47,27 +52,6 @@ Index: util-linux-2.24.1/include/c.h
47 * MAXHOSTNAMELEN replacement 52 * MAXHOSTNAMELEN replacement
48 */ 53 */
49 static inline size_t get_hostname_max(void) 54 static inline size_t get_hostname_max(void)
50Index: util-linux-2.24.1/lib/randutils.c 55--
51=================================================================== 561.9.1
52--- util-linux-2.24.1.orig/lib/randutils.c 57
53+++ util-linux-2.24.1/lib/randutils.c
54@@ -16,6 +16,7 @@
55 #include <sys/syscall.h>
56
57 #include "randutils.h"
58+#include "c.h"
59
60 #ifdef HAVE_TLS
61 #define THREAD_LOCAL static __thread
62Index: util-linux-2.24.1/lib/wholedisk.c
63===================================================================
64--- util-linux-2.24.1.orig/lib/wholedisk.c
65+++ util-linux-2.24.1/lib/wholedisk.c
66@@ -10,6 +10,7 @@
67
68 #include "blkdev.h"
69 #include "wholedisk.h"
70+#include "c.h"
71
72 int is_whole_disk_fd(int fd, const char *name)
73 {