summaryrefslogtreecommitdiffstats
path: root/package/uclibc/0002-sys-types.h-sync-with-GNU-C-library.patch
blob: ea940f1b01bcde0bb720e1310bae0030ee925bcc (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
From 5244b9db8f17190413a4c6b10166cec7969178f5 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@uclibc-ng.org>
Date: Tue, 6 Jun 2017 21:41:55 +0200
Subject: [PATCH] sys/types.h: sync with GNU C library

Fixed in glibc commit f9cfa295ae3f2556bd8808f0ff693cfe44f4ac25.
Found via Buildroot autobuilder and gdbm package cross-compile.

Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
---
 include/sys/types.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/sys/types.h b/include/sys/types.h
index 2b45d03..078a29c 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -223,7 +223,8 @@ typedef int register_t __attribute__ ((__mode__ (__word__)));
 #endif /* Use BSD.  */
 
 
-#if defined __USE_UNIX98 && !defined __blksize_t_defined
+#if (defined __USE_UNIX98 || defined __USE_XOPEN2K8) \
+    && !defined __blksize_t_defined
 typedef __blksize_t blksize_t;
 # define __blksize_t_defined
 #endif
-- 
2.1.4

OpenPOWER on IntegriCloud