termux-packages/packages/memcached/memcached.c.patch

20 lines
739 B
Diff

--- ../../build/memcached/cache/memcached-1.4.35/memcached.c 2017-02-26 21:09:58.000000000 +0100
+++ ./memcached.c 2017-03-09 00:43:30.891562086 +0100
@@ -14,6 +14,7 @@
* Brad Fitzpatrick <brad@danga.com>
*/
#include "memcached.h"
+#include "getsubopt.h"
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
@@ -50,7 +51,7 @@
/* FreeBSD 4.x doesn't have IOV_MAX exposed. */
#ifndef IOV_MAX
-#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__GNU__)
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__GNU__) || defined(__ANDROID__)
# define IOV_MAX 1024
/* GNU/Hurd don't set MAXPATHLEN
* http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL */