From 1efa64473ef4ee4fe2b02a55c128bbbdd7d429cf Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 1 Feb 2011 21:41:33 +0000 Subject: [PATCH] memcached: fix compile error triggerd by defining __need_IOV_MAX too late git-svn-id: svn://svn.openwrt.org/openwrt/packages@25295 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/memcached/patches/100-fix_iov_max.patch | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net/memcached/patches/100-fix_iov_max.patch diff --git a/net/memcached/patches/100-fix_iov_max.patch b/net/memcached/patches/100-fix_iov_max.patch new file mode 100644 index 000000000..086096e2c --- /dev/null +++ b/net/memcached/patches/100-fix_iov_max.patch @@ -0,0 +1,23 @@ +--- a/memcached.c ++++ b/memcached.c +@@ -15,6 +15,10 @@ + std * + * $Id$ + */ ++#ifndef __need_IOV_MAX ++#define __need_IOV_MAX ++#endif ++ + #include "memcached.h" + #include + #include +@@ -29,9 +33,6 @@ + #define _P1003_1B_VISIBLE + #endif + /* need this to get IOV_MAX on some platforms. */ +-#ifndef __need_IOV_MAX +-#define __need_IOV_MAX +-#endif + #include + #include + #include