void-packages/srcpkgs/libeatmydata/patches/musl.patch

19 lines
396 B
Diff

In musl open64 is by default a #define to open.
However, it provides compat symbols and we want this
to explicitly use those.
--- a/libeatmydata/libeatmydata.c
+++ b/libeatmydata/libeatmydata.c
@@ -27,6 +27,11 @@
#include <stdarg.h>
#include <pthread.h>
+/* refer to the compat alias in musl */
+#if !defined(__GLIBC__)
+#undef open64
+#endif
+
/*
#define CHECK_FILE "/tmp/eatmydata"
*/