e2a2826be5
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>
31 lines
950 B
Diff
31 lines
950 B
Diff
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
|
|
|