memcached: Update from 1.4.36 to 1.5.2
[termux-packages] / packages / memcached / memcached.c.patch
1 --- ../../build/memcached/cache/memcached-1.4.35/memcached.c 2017-02-26 21:09:58.000000000 +0100
2 +++ ./memcached.c 2017-03-09 00:43:30.891562086 +0100
3 @@ -14,6 +14,7 @@
4 * Brad Fitzpatrick <brad@danga.com>
5 */
6 #include "memcached.h"
7 +#include "getsubopt.h"
8 #include <sys/stat.h>
9 #include <sys/socket.h>
10 #include <sys/un.h>
11 @@ -50,7 +51,7 @@
12
13 /* FreeBSD 4.x doesn't have IOV_MAX exposed. */
14 #ifndef IOV_MAX
15 -#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__GNU__)
16 +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__GNU__) || defined(__ANDROID__)
17 # define IOV_MAX 1024
18 /* GNU/Hurd don't set MAXPATHLEN
19 * http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL */