$NetBSD: patch-af,v 1.11 2006/02/14 21:57:44 adam Exp $

--- converter/other/cameratopam/identify.c.orig	2005-08-27 19:29:58.000000000 +0200
+++ converter/other/cameratopam/identify.c
@@ -23,7 +23,11 @@
 
 static loadRawFn load_raw;
 
+#include <sys/param.h>
 
+#if !(defined(__GLIBC__) \
+  || (defined(__NetBSD__) && (__NetBSD_Version__ >= 300000000)) \
+  || (defined(__FreeBSD__) && (__FreeBSD_version >=  600000)))
 /* 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 +38,7 @@ static const char *memmem (const char *h
       return c;
   return NULL;
 }
+#endif
 
 /*
    Thanks to Adobe for providing these excellent CAM -> XYZ matrices!
