From 966a221bc04980b536812cf8909b5ded4f8b9dd1 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 2 Jan 2020 17:59:34 +0100 Subject: [PATCH] libeatmydata: fix build on musl --- srcpkgs/libeatmydata/patches/musl.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/libeatmydata/patches/musl.patch diff --git a/srcpkgs/libeatmydata/patches/musl.patch b/srcpkgs/libeatmydata/patches/musl.patch new file mode 100644 index 00000000000..801dbb9b657 --- /dev/null +++ b/srcpkgs/libeatmydata/patches/musl.patch @@ -0,0 +1,18 @@ +In musl open64 is by default a #define to open. +However, it provides compat symbols and we want this +to explicitly use those. + +--- libeatmydata/libeatmydata.c ++++ libeatmydata/libeatmydata.c +@@ -27,6 +27,11 @@ + #include + #include + ++/* refer to the compat alias in musl */ ++#if !defined(__GLIBC__) ++#undef open64 ++#endif ++ + /* + #define CHECK_FILE "/tmp/eatmydata" + */