packages/net/memcached/patches/100-fix_iov_max.patch
Thomas Heil e273fef7a7 memcached: import from packages, add myself as the maintainer
This adds the memcached package from the old svn package fee. I adopt
the licensing information an will maintain the package in the future.
This request also updates memcached to the last stable version 1.4.20.
Building was testet with target x86_64, ar71xx and avr32

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-06-23 15:15:52 +02:00

23 lines
498 B
Diff

--- a/memcached.c
+++ b/memcached.c
@@ -13,6 +13,10 @@
* Anatoly Vorobey <mellon@pobox.com>
* Brad Fitzpatrick <brad@danga.com>
*/
+#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>