--- memcached-1.2.1/memcached.h.orig 2007-01-12 17:15:55.188681000 +0000
+++ memcached-1.2.1/memcached.h 2007-01-12 17:26:46.504645000 +0000
@@ -76,7 +76,11 @@
unsigned char it_flags; /* ITEM_* above */
unsigned char slabs_clsid;/* which slab class we're in */
unsigned char nkey; /* key length, w/terminating null and padding */
+#if (defined(sun) || defined(__sun))
+ void * end[1];
+#else
void * end[0];
+#endif
/* then null-terminated key */
/* then " flags length\r\n" (no terminating null) */
/* then data with terminating \r\n (no terminating null; it's binary!) */
--- memcached-1.2.1/memcached.c.orig 2007-01-12 16:09:44.527897000 +0000
+++ memcached-1.2.1/memcached.c 2007-01-12 17:35:23.950121000 +0000
@@ -24,6 +24,7 @@
#include <sys/signal.h>
#include <sys/resource.h>
#include <sys/uio.h>
+#include <signal.h>
/* some POSIX systems need the following definition
* to get mlockall flags out of sys/mman.h. */