memcached: fix compile error triggerd by defining __need_IOV_MAX too late
authorFelix Fietkau <[email protected]>
Tue, 1 Feb 2011 21:41:33 +0000 (21:41 +0000)
committerFelix Fietkau <[email protected]>
Tue, 1 Feb 2011 21:41:33 +0000 (21:41 +0000)
SVN-Revision: 25295

net/memcached/patches/100-fix_iov_max.patch [new file with mode: 0644]

diff --git a/net/memcached/patches/100-fix_iov_max.patch b/net/memcached/patches/100-fix_iov_max.patch
new file mode 100644 (file)
index 0000000..086096e
--- /dev/null
@@ -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 <sys/stat.h>
+ #include <sys/socket.h>
+@@ -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 <pwd.h>
+ #include <sys/mman.h>
+ #include <fcntl.h>