From: Waldemar Brodkorb Date: Tue, 6 Jun 2017 21:08:31 +0000 (+0200) Subject: uclibc: add upstream patch to fix gdbm compile issue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2a2826be557f661c88b607212c1469cc5820bcc;p=buildroot.git uclibc: add upstream patch to fix gdbm compile issue 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 Signed-off-by: Thomas Petazzoni --- 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 index 0000000000..ea940f1b01 --- /dev/null +++ b/package/uclibc/0002-sys-types.h-sync-with-GNU-C-library.patch @@ -0,0 +1,30 @@ +From 5244b9db8f17190413a4c6b10166cec7969178f5 Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb +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 +--- + 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 +