diff --git a/recipes/dev/patch/03_renameat2.patch b/recipes/dev/patch/03_renameat2.patch new file mode 100644 index 00000000..f5e799e9 --- /dev/null +++ b/recipes/dev/patch/03_renameat2.patch @@ -0,0 +1,15 @@ +--- source-old/lib/renameat2.c 2018-02-03 05:41:53.000000000 -0700 ++++ source/lib/renameat2.c 2025-11-01 08:39:54.945513820 -0600 +@@ -70,6 +70,7 @@ + Obey FLAGS when doing the renaming. If FLAGS is zero, this + function is equivalent to renameat (FD1, SRC, FD2, DST). */ + ++#if !defined(__redox__) + int + renameat2 (int fd1, char const *src, int fd2, char const *dst, + unsigned int flags) +@@ -225,3 +226,4 @@ + + #endif /* !HAVE_RENAMEAT */ + } ++#endif diff --git a/recipes/dev/patch/recipe.toml b/recipes/dev/patch/recipe.toml index 7daf66d7..3e4cadbc 100644 --- a/recipes/dev/patch/recipe.toml +++ b/recipes/dev/patch/recipe.toml @@ -4,6 +4,7 @@ blake3 = "d46d14c12aa4ea51e356bf92091c368fd871e1d770b94bc29027886737aecd5f" patches = [ "01_no_rlimit.patch", "02_no_chown.patch", + "03_renameat2.patch", ] script = """ wget -O build-aux/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false" @@ -24,4 +25,4 @@ cookbook_configure ${TARGET}-strip "${COOKBOOK_STAGE}/bin/"* rm -rf "${COOKBOOK_STAGE}/share" "${COOKBOOK_STAGE}/lib" -""" \ No newline at end of file +"""