$NetBSD: patch-af,v 1.10 2005/08/22 11:59:31 adam Exp $

--- converter/other/cameratopam/identify.c.orig	2005-08-15 06:07:25.000000000 +0000
+++ converter/other/cameratopam/identify.c
@@ -23,7 +23,9 @@
 
 static loadRawFn load_raw;
 
+#include <sys/param.h>
 
+#if !(defined(__GLIBC__) || (defined(__NetBSD__) && (__NetBSD_Version__ >= 300000000)))
 /* This does the same as the function of the same name in the GNU C library */
 static const char *memmem (const char *haystack, size_t haystacklen,
                      const char *needle, size_t needlelen)
@@ -34,6 +36,7 @@ static const char *memmem (const char *h
       return c;
   return NULL;
 }
+#endif
 
 /*
    Thanks to Adobe for providing these excellent CAM -> XYZ matrices!
