From 49476d85047c707e6f0812f0abf72cd5cb41c730 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Tue, 31 Mar 2020 12:26:47 +0200 Subject: [PATCH] games-board/polyglot: Fix compilation with musl libc. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/715560 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Ulrich Müller --- .../files/polyglot-1.4.70b-musl.patch | 30 +++++++++++++++++++ .../polyglot/polyglot-1.4.70b-r3.ebuild | 5 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 games-board/polyglot/files/polyglot-1.4.70b-musl.patch diff --git a/games-board/polyglot/files/polyglot-1.4.70b-musl.patch b/games-board/polyglot/files/polyglot-1.4.70b-musl.patch new file mode 100644 index 000000000000..5ccbdea4a43d --- /dev/null +++ b/games-board/polyglot/files/polyglot-1.4.70b-musl.patch @@ -0,0 +1,30 @@ +Rename uint64_t to uint64 (same as in util.h) to avoid a name collision. +https://bugs.gentoo.org/715560 + +--- polyglot-1.4.70b-orig/pgheader.c ++++ polyglot-1.4.70b/pgheader.c +@@ -49,12 +49,12 @@ + #endif + + #ifdef _MSC_VER +- typedef unsigned __int64 uint64_t; ++ typedef unsigned __int64 uint64; + #else +- typedef unsigned long long int uint64_t; ++ typedef unsigned long long int uint64; + #endif + +-static int int_from_file(FILE *f, int l, uint64_t *r){ ++static int int_from_file(FILE *f, int l, uint64 *r){ + int i,c; + for(i=0;i