syslinux: pick proposed patch to fix build on gnu-efi >= 3.0.17

This commit is contained in:
K900 2024-06-11 07:58:50 +03:00
parent ec74c63861
commit cae5fb3e5c
2 changed files with 13 additions and 0 deletions

View File

@ -69,6 +69,8 @@ stdenv.mkDerivation {
"sha256-dVzXBi/oSV9vYgU85mRFHBKuZdup+1x1BipJX74ED7E=")
# Fixes build with "modern" gnu-efi
./import-efisetjmp.patch
# Upstream patch: https://www.syslinux.org/archives/2024-February/026903.html
./define-wchar_t.patch
];
postPatch = ''

View File

@ -0,0 +1,11 @@
diff --git a/com32/include/stddef.h b/com32/include/stddef.h
index f52d62f3..437b11f2 100644
--- a/com32/include/stddef.h
+++ b/com32/include/stddef.h
@@ -29,4 +29,6 @@
*/
#define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))
+typedef short wchar_t;
+
#endif /* _STDDEF_H */