From 20ff2c1d6c242fc01a5f1169e1a3a2b48a2cdd73 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Mon, 6 Apr 2026 13:54:17 +0800 Subject: [PATCH] musl: Disable copy_file_range --- src/third_party/libc++/src/src/filesystem/operations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/third_party/libc++/src/src/filesystem/operations.cpp b/src/third_party/libc++/src/src/filesystem/operations.cpp index cd55b797e9..7b262b0dca 100644 --- a/src/third_party/libc++/src/src/filesystem/operations.cpp +++ b/src/third_party/libc++/src/src/filesystem/operations.cpp @@ -41,7 +41,7 @@ #include // since Linux 4.5 and FreeBSD 13, but the Linux libc wrapper is only provided by glibc >= 2.27 and musl -#if _LIBCPP_GLIBC_PREREQ(2, 27) || _LIBCPP_HAS_MUSL_LIBC || defined(__FreeBSD__) +#if _LIBCPP_GLIBC_PREREQ(2, 27) || defined(__FreeBSD__) # define _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE #endif