1 diff -Naur newsbeuter-2.9.orig/src/utils.cpp newsbeuter-2.9/src/utils.cpp
2 --- newsbeuter-2.9.orig/src/utils.cpp 2015-02-19 11:56:59.000000000 +0100
3 +++ newsbeuter-2.9/src/utils.cpp 2016-05-30 22:48:05.751627034 +0200
5 #include <openssl/crypto.h>
10 +# define F_ULOCK 0 /* Unlock a previously locked region. */
11 +# define F_LOCK 1 /* Lock a region for exclusive use. */
12 +# define F_TLOCK 2 /* Test and lock a region for exclusive use. */
13 +# define F_TEST 3 /* Test a region for other processes locks. */
15 +inline int lockf(int fd, int cmd, off_t ignored_len) {
16 + return flock(fd, cmd);
20 namespace newsbeuter {
22 std::vector<std::string> utils::tokenize_quoted(const std::string& str, std::string delimiters) {