dev-db/cdb: fix build

Closes: https://bugs.gentoo.org/693094
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2021-11-10 22:40:47 +09:00
parent fa943a353d
commit 58d46a271f
2 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-errno.patch
"${FILESDIR}"/${PN}-inline.patch
"${FILESDIR}"/${PN}-stdint.patch
)

View File

@@ -0,0 +1,11 @@
--- a/cdbmake.c
+++ b/cdbmake.c
@@ -26,7 +26,7 @@
strerr_die2x(111,FATAL,"unable to read input: bad format");
}
-inline void get(char *ch)
+static inline void get(char *ch)
{
switch(buffer_GETC(buffer_0,ch)) {
case 0: die_readformat();