$NetBSD: patch-ab,v 1.2 2007/03/02 11:20:10 grant Exp $

--- memcached.h.orig	2006-12-05 20:34:10.000000000 +1100
+++ memcached.h
@@ -76,7 +76,7 @@ typedef struct _stritem {
     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 */
-    void * end[0];
+    void * end[];
     /* then null-terminated key */
     /* then " flags length\r\n" (no terminating null) */
     /* then data with terminating \r\n (no terminating null; it's binary!) */
@@ -282,3 +282,5 @@ void item_flush_expired(void);
 void set_current_time ();  /* update the global variable holding
                               global 32-bit seconds-since-start time
                               (to avoid 64 bit time_t) */
+
+extern int daemon(int, int);
