sys/sendfile.h is actually only defined for Linux.

This commit is contained in:
kjopek 2018-07-12 13:44:01 +02:00
parent eccc1d4c10
commit 6dd3a22495

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <sys/mman.h> #include <sys/mman.h>
#if !defined(__APPLE__) #if defined(__linux__)
#include <sys/sendfile.h> #include <sys/sendfile.h>
#endif #endif
#include <sys/stat.h> #include <sys/stat.h>