2011-02-01 21:41:33 +00:00
|
|
|
--- a/memcached.c
|
|
|
|
+++ b/memcached.c
|
2012-01-19 00:46:53 +00:00
|
|
|
@@ -13,6 +13,10 @@
|
|
|
|
* Anatoly Vorobey <mellon@pobox.com>
|
|
|
|
* Brad Fitzpatrick <brad@danga.com>
|
2011-02-01 21:41:33 +00:00
|
|
|
*/
|
|
|
|
+#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>
|