aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/coreutils/coreutils-6.9/0001-sort.c-Reorder-includes-for-glibc-2.34-portability.patch
blob: 0d9b5e242eb00f9080ca054a8d5af753ffd7bd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From e241a55767c4eaac7d14c412d880037cb6d2ee33 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 29 Jun 2021 22:43:16 -0700
Subject: [PATCH] sort.c: Reorder includes for glibc 2.34 portability

With glibc 2.34 config.h will include stdlib.h and that would disable
sys/wait.h to include needed definitions from bits/waitflags.h since
_STDLIB_H would have been defined already and sys/wait.h would think
these paths are included already, this is fixed with newer gnulib and
configure so this is to get this old version to compile with latest
glibc headers

Upstream-Status: Inappropriate [OE-Specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/sort.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sort.c b/src/sort.c
index 58ca66a..48b22c8 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -21,11 +21,11 @@
 
    Ørn E. Hansen added NLS support in 1997.  */
 
+#include <sys/types.h>
+#include <sys/wait.h>
 #include <config.h>
 
 #include <getopt.h>
-#include <sys/types.h>
-#include <sys/wait.h>
 #include <signal.h>
 #include "system.h"
 #include "argmatch.h"
-- 
2.32.0