[memcached] bradfitz, r367: FreeBSD 4.x doesn't have IOV_MAX exposed...

commits at code.sixapart.com commits at code.sixapart.com
Tue Sep 5 05:00:40 UTC 2006


FreeBSD 4.x doesn't have IOV_MAX exposed (Eric Hodel <drbrain at segment7.net>)

U   trunk/server/memcached.c


Modified: trunk/server/memcached.c
===================================================================
--- trunk/server/memcached.c	2006-09-05 04:56:24 UTC (rev 366)
+++ trunk/server/memcached.c	2006-09-05 05:00:40 UTC (rev 367)
@@ -54,6 +54,13 @@
 #include <malloc.h>
 #endif
 
+/* FreeBSD 4.x doesn't have IOV_MAX exposed. */
+#ifndef IOV_MAX
+#if defined(__FreeBSD__)
+# define IOV_MAX 1024
+#endif
+#endif
+
 #include "memcached.h"
 
 struct stats stats;




More information about the memcached-commits mailing list