]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
uclibc: add upstream patch to fix gdbm compile issue
authorWaldemar Brodkorb <wbx@openadk.org>
Tue, 6 Jun 2017 21:08:31 +0000 (23:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Jun 2017 19:32:17 +0000 (21:32 +0200)
This patches fixes

gdbmopen.c:35:40: error: unknown type name 'blksize_t'
 compute_directory_size (GDBM_FILE dbf, blksize_t block_size,

Fixes
  http://autobuild.buildroot.net/results/592/59278fb8681d474883e6551df5173edd806b16fa/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/uclibc/0002-sys-types.h-sync-with-GNU-C-library.patch [new file with mode: 0644]

diff --git a/package/uclibc/0002-sys-types.h-sync-with-GNU-C-library.patch b/package/uclibc/0002-sys-types.h-sync-with-GNU-C-library.patch
new file mode 100644 (file)
index 0000000..ea940f1
--- /dev/null
@@ -0,0 +1,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
+