Skip to content

Commit 77205e5

Browse files
committed
_LIBCPP_GLIBC_PREREQ might not be defined
1 parent dbaa5fe commit 77205e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/src/filesystem/operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <time.h>
4141

4242
// since Linux 4.5 and FreeBSD 13, but the Linux libc wrapper is only provided by glibc >= 2.27 and musl
43-
#if (defined(__linux__) && (_LIBCPP_GLIBC_PREREQ(2, 27) || _LIBCPP_HAS_MUSL_LIBC)) || defined(__FreeBSD__)
43+
#if (defined(__linux__) && ((defined(_LIBCPP_GLIBC_PREREQ) && _LIBCPP_GLIBC_PREREQ(2, 27)) || _LIBCPP_HAS_MUSL_LIBC)) || defined(__FreeBSD__)
4444
# define _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE
4545
#endif
4646
#if __has_include(<sys/sendfile.h>)

0 commit comments

Comments
 (0)