mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
syslinux: pick proposed patch to fix build on gnu-efi >= 3.0.17
This commit is contained in:
parent
ec74c63861
commit
cae5fb3e5c
@ -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 = ''
|
||||
|
11
pkgs/os-specific/linux/syslinux/define-wchar_t.patch
Normal file
11
pkgs/os-specific/linux/syslinux/define-wchar_t.patch
Normal 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 */
|
Loading…
Reference in New Issue
Block a user