mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 13:47:35 -08:00
sys-boot/syslinux: fix building on musl
Safe patch, which adds an include to <stdint.h>, and #define conditionally if not defined the missing types. Closes: https://bugs.gentoo.org/626952 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
996fc63589
commit
f3da37ce12
24
sys-boot/syslinux/files/syslinux-musl.patch
Normal file
24
sys-boot/syslinux/files/syslinux-musl.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- a/efi/wrapper.h
|
||||
+++ b/efi/wrapper.h
|
||||
@@ -26,6 +26,21 @@
|
||||
#define __packed __attribute__((packed))
|
||||
#define OFFSETOF(t,m) ((size_t)&((t *)0)->m)
|
||||
|
||||
+#include <stdint.h>
|
||||
+
|
||||
+#ifndef __uint8_t
|
||||
+#define __uint8_t uint8_t
|
||||
+#endif
|
||||
+#ifndef __uint16_t
|
||||
+#define __uint16_t uint16_t
|
||||
+#endif
|
||||
+#ifndef __uint32_t
|
||||
+#define __uint32_t uint32_t
|
||||
+#endif
|
||||
+#ifndef __uint64_t
|
||||
+#define __uint64_t uint64_t
|
||||
+#endif
|
||||
+
|
||||
struct header {
|
||||
__uint16_t msdos_signature;
|
||||
__uint8_t _pad1[0x16];
|
||||
@ -48,6 +48,7 @@ src_prepare() {
|
||||
"${FILESDIR}/syslinux-6.03-sysmacros.patch"
|
||||
"${FILESDIR}/${PV}"
|
||||
"${FILESDIR}/syslinux-6.04-binutils-2.41.patch"
|
||||
"${FILESDIR}/syslinux-musl.patch"
|
||||
)
|
||||
default
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@ src_prepare() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}/6.04_pre1"
|
||||
"${FILESDIR}/6.04_pre3"
|
||||
"${FILESDIR}/syslinux-musl.patch"
|
||||
)
|
||||
default
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user