chiark / gitweb /
libuv: Update from 1.20.0 to 1.20.1
[termux-packages] / packages / boost / libs-filesystem-src-operations.cpp.patch
1 Do not define __USE_FILE_OFFSET64 as it causes fsetpos&fgetpos to be
2 undefined on api levels lower than android-24.
3
4 diff -u -r ../boost_1_64_0/libs/filesystem/src/operations.cpp ./libs/filesystem/src/operations.cpp
5 --- ../boost_1_64_0/libs/filesystem/src/operations.cpp  2017-04-17 04:22:19.000000000 +0200
6 +++ ./libs/filesystem/src/operations.cpp        2017-08-08 10:08:13.607302273 +0200
7 @@ -15,6 +15,7 @@
8  #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
9  #endif
10  #if !defined(__PGI)
11 +#if !defined(__ANDROID__)
12  #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX
13        // 64-bit systems or on 32-bit systems which don't have files larger 
14        // than can be represented by a traditional POSIX/UNIX off_t type. 
15 @@ -25,6 +26,7 @@
16        // ensure that they are available to all included headers.
17        // That is required at least on Solaris, and possibly on other
18        // systems as well.
19 +#endif
20  #else
21  #define _FILE_OFFSET_BITS 64
22  #endif