summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/gcc-memory.patch2
-rw-r--r--patches/mintsuki-stddef.patch14
2 files changed, 16 insertions, 0 deletions
diff --git a/patches/gcc-memory.patch b/patches/gcc-memory.patch
new file mode 100644
index 0000000..9cdc9e2
--- /dev/null
+++ b/patches/gcc-memory.patch
@@ -0,0 +1,2 @@
+67a68
+> #include <std/allocator.hpp>
diff --git a/patches/mintsuki-stddef.patch b/patches/mintsuki-stddef.patch
new file mode 100644
index 0000000..4f98cc2
--- /dev/null
+++ b/patches/mintsuki-stddef.patch
@@ -0,0 +1,14 @@
+diff --git a/stddef.h b/stddef.h
+index 376eb75..fb1e99d 100644
+--- a/stddef.h
++++ b/stddef.h
+@@ -50,4 +50,9 @@ typedef decltype(nullptr) nullptr_t;
+ # define unreachable() __builtin_unreachable()
+ #endif
+
++typedef struct {
++ long long ll __attribute__((__aligned__(__alignof__(long long))));
++ long double ld __attribute__((__aligned__(__alignof__(long double))));
++} max_align_t;
++
+ #endif