Files

11 lines
366 B
Diff
Raw Permalink Normal View History

2025-09-30 19:15:53 +02:00
--- lib/fusion.c.orig 2025-09-18 12:51:36.000000000 +0200
+++ lib/fusion.c 2025-09-18 12:51:10.000000000 +0200
@@ -64,6 +64,7 @@
#define aligned_alloc(a, s) _aligned_malloc((s), (a))
#define aligned_free(p) _aligned_free(p)
#else
+#define aligned_alloc(a, s) ({void *res; posix_memalign(&res, a, s) == 0 ? res : NULL;})
#define aligned_free(p) free(p)
#endif