Skip to content

Commit b697b46

Browse files
ldionneJannik2099
authored andcommitted
Make _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE and _LIBCPP_FILESYSTEM_USE_SENDFILE disjoint
1 parent 20f0bab commit b697b46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/src/filesystem/operations.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
// since Linux 4.5 and FreeBSD 13
4242
#if defined(__linux__) || defined(__FreeBSD__)
4343
# define _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE
44-
#endif
45-
#if __has_include(<sys/sendfile.h>)
44+
#elif __has_include(<sys/sendfile.h>)
4645
# include <sys/sendfile.h>
4746
# define _LIBCPP_FILESYSTEM_USE_SENDFILE
4847
#elif defined(__APPLE__) || __has_include(<copyfile.h>)

0 commit comments

Comments
 (0)