picolisp: Update from 17.7.9 to 17.8.7
[termux-packages] / packages / newsbeuter / 003_lockf.patch
1 diff -u -r ../newsbeuter-2.9/src/utils.cpp ./src/utils.cpp
2 --- ../newsbeuter-2.9/src/utils.cpp 2015-02-19 11:56:59.000000000 +0100
3 +++ ./src/utils.cpp 2017-07-01 00:13:42.783350794 +0200
4 @@ -37,6 +41,13 @@
5 #include <openssl/crypto.h>
6 #endif
7
8 +#ifdef __ANDROID__
9 +#include <sys/file.h>
10 +inline int lockf(int fd, int cmd, off_t ignored_len) {
11 + return flock(fd, cmd);
12 +}
13 +#endif
14 +
15 namespace newsbeuter {
16
17 std::vector<std::string> utils::tokenize_quoted(const std::string& str, std::string delimiters) {