blob: ad552e82f1eabd72ff319de02533e8ff8225abea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-af,v 1.12 2009/04/07 08:09:06 hasso Exp $
--- converter/other/cameratopam/identify.c.orig 2005-08-27 19:29:58.000000000 +0200
+++ converter/other/cameratopam/identify.c
@@ -23,7 +23,12 @@
static loadRawFn load_raw;
+#include <sys/param.h>
+#if !(defined(__GLIBC__) \
+ || (defined(__NetBSD__) && (__NetBSD_Version__ >= 300000000)) \
+ || (defined(__FreeBSD__) && (__FreeBSD_version >= 600000)) \
+ || (defined(__DragonFly__) && (__DragonFly_version >= 200202)))
/* 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!
|