strongswan: moved to github
[packages.git] / net / memcached / patches / 100-fix_iov_max.patch
1 --- a/memcached.c
2 +++ b/memcached.c
3 @@ -13,6 +13,10 @@
4   *      Anatoly Vorobey <mellon@pobox.com>
5   *      Brad Fitzpatrick <brad@danga.com>
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>