$NetBSD: patch-ab,v 1.1 2010/09/09 08:58:25 rxg Exp $

--- src/conf.h.orig	2007-07-17 10:28:09.000000000 +0000
+++ src/conf.h
@@ -115,7 +115,7 @@ private:
 	std::auto_ptr<config_file> cf;
 	cache_t cache;
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__NetBSD__)
 static void *memrchr(const void *mem, int c, size_t len) {
 	char *res;
 	char *cmem = (char *)mem;
