diff options
Diffstat (limited to 'recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch')
-rw-r--r-- | recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch b/recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch new file mode 100644 index 0000000..0d9b5e2 --- /dev/null +++ b/recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From e241a55767c4eaac7d14c412d880037cb6d2ee33 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 29 Jun 2021 22:43:16 -0700 | ||
4 | Subject: [PATCH] sort.c: Reorder includes for glibc 2.34 portability | ||
5 | |||
6 | With glibc 2.34 config.h will include stdlib.h and that would disable | ||
7 | sys/wait.h to include needed definitions from bits/waitflags.h since | ||
8 | _STDLIB_H would have been defined already and sys/wait.h would think | ||
9 | these paths are included already, this is fixed with newer gnulib and | ||
10 | configure so this is to get this old version to compile with latest | ||
11 | glibc headers | ||
12 | |||
13 | Upstream-Status: Inappropriate [OE-Specific] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | src/sort.c | 4 ++-- | ||
17 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/src/sort.c b/src/sort.c | ||
20 | index 58ca66a..48b22c8 100644 | ||
21 | --- a/src/sort.c | ||
22 | +++ b/src/sort.c | ||
23 | @@ -21,11 +21,11 @@ | ||
24 | |||
25 | Ørn E. Hansen added NLS support in 1997. */ | ||
26 | |||
27 | +#include <sys/types.h> | ||
28 | +#include <sys/wait.h> | ||
29 | #include <config.h> | ||
30 | |||
31 | #include <getopt.h> | ||
32 | -#include <sys/types.h> | ||
33 | -#include <sys/wait.h> | ||
34 | #include <signal.h> | ||
35 | #include "system.h" | ||
36 | #include "argmatch.h" | ||
37 | -- | ||
38 | 2.32.0 | ||
39 | |||