projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
memcached: fix compile error triggerd by defining __need_IOV_MAX too late
[openwrt/svn-archive/archive.git]
/
net
/
memcached
/
patches
/
100-fix_iov_max.patch
1
--- a/memcached.c
2
+++ b/memcached.c
3
@@ -15,6 +15,10 @@
4
std *
5
* $Id$
6
*/
7
+#ifndef __need_IOV_MAX
8
+#define __need_IOV_MAX
9
+#endif
10
+
11
#include "memcached.h"
12
#include <sys/stat.h>
13
#include <sys/socket.h>
14
@@ -29,9 +33,6 @@
15
#define _P1003_1B_VISIBLE
16
#endif
17
/* need this to get IOV_MAX on some platforms. */
18
-#ifndef __need_IOV_MAX
19
-#define __need_IOV_MAX
20
-#endif
21
#include <pwd.h>
22
#include <sys/mman.h>
23
#include <fcntl.h>