mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-11 08:35:47 +00:00
13 lines
308 B
Diff
13 lines
308 B
Diff
--- a/trysendfile.c
|
|
+++ b/trysendfile.c
|
|
@@ -62,7 +62,8 @@
|
|
#define _FILE_OFFSET_BITS 64
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
-#if defined(__GLIBC__)
|
|
+#include <fcntl.h>
|
|
+#if defined(__GLIBC__) || defined(__ANDROID__)
|
|
#include <sys/sendfile.h>
|
|
#elif defined(__dietlibc__)
|
|
#include <sys/sendfile.h>
|