mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Don't use sendfile() in libcxx
This commit is contained in:
parent
18964e5d76
commit
0d7c272d3f
1 changed files with 4 additions and 1 deletions
5
third_party/libcxx/fs/operations.cpp
vendored
5
third_party/libcxx/fs/operations.cpp
vendored
|
@ -37,7 +37,10 @@
|
|||
#include <fcntl.h> /* values for fchmodat */
|
||||
#include <time.h>
|
||||
|
||||
#if __has_include(<sys/sendfile.h>)
|
||||
#if defined(__COSMOPOLITAN__)
|
||||
# include <fstream>
|
||||
# define _LIBCPP_FILESYSTEM_USE_FSTREAM
|
||||
#elif __has_include(<sys/sendfile.h>)
|
||||
# include <sys/sendfile.h>
|
||||
# define _LIBCPP_FILESYSTEM_USE_SENDFILE
|
||||
#elif defined(__APPLE__) || __has_include(<copyfile.h>)
|
||||
|
|
Loading…
Reference in a new issue