pkgsrc/devel/memcached/patches/patch-ab
2007-08-30 19:32:49 +00:00

21 lines
743 B
Text

$NetBSD: patch-ab,v 1.4 2007/08/30 19:32:50 joerg Exp $
--- memcached.h.orig 2007-05-02 22:58:51.000000000 +0000
+++ memcached.h
@@ -3,6 +3,7 @@
#include "config.h"
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <event.h>
@@ -102,7 +103,7 @@ typedef struct _stritem {
uint8_t it_flags; /* ITEM_* above */
uint8_t slabs_clsid;/* which slab class we're in */
uint8_t 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!) */