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
This commit is contained in:
nbd 2011-02-01 21:41:33 +00:00
parent 042f30556f
commit 1efa64473e

View File

@ -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>