diff options
author | skrll <skrll> | 2002-05-14 22:06:56 +0000 |
---|---|---|
committer | skrll <skrll> | 2002-05-14 22:06:56 +0000 |
commit | 27296ee3e553b846d5e10932d67ad09369a63068 (patch) | |
tree | af71ef2117a776a9b7be7413519fbfbbd01242f7 /graphics/lcms/patches | |
parent | b42c89826eaf314b05c4fdd35afac5d3f4e2d42d (diff) | |
download | pkgsrc-27296ee3e553b846d5e10932d67ad09369a63068.tar.gz |
Don't include <sys/param.h> in function scope. This make lcms compile when
using nathanw_sa sources.
Diffstat (limited to 'graphics/lcms/patches')
-rw-r--r-- | graphics/lcms/patches/patch-ab | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/lcms/patches/patch-ab b/graphics/lcms/patches/patch-ab index 339317a9032..4de93f1a4f9 100644 --- a/graphics/lcms/patches/patch-ab +++ b/graphics/lcms/patches/patch-ab @@ -1,7 +1,5 @@ -$NetBSD: patch-ab,v 1.4 2002/03/15 11:12:57 markd Exp $ - ---- source/cmsmtrx.c Thu May 18 18:08:13 2000 -+++ source/cmsmtrx.c Mon Oct 30 09:53:39 2000 +--- source/cmsmtrx.c.orig Thu May 18 23:08:13 2000 ++++ source/cmsmtrx.c Tue May 14 22:38:58 2002 @@ -31,6 +31,7 @@ // Vector & Matrix stuff @@ -10,12 +8,18 @@ $NetBSD: patch-ab,v 1.4 2002/03/15 11:12:57 markd Exp $ void cdecl VEC3init(LPVEC3 r, double x, double y, double z); -@@ -248,7 +249,12 @@ +@@ -242,13 +243,18 @@ + // support asm at all. Use with care, since this will slow down + // all operations + ++#include <sys/param.h> + Fixed32 FixedMul(Fixed32 a, Fixed32 b) + { + // If newest __int64 defined, then use it #ifdef USE_INT64 - __int64 l = (__int64) a * b + 0x8000i64; -+#include <sys/param.h> +#if (defined(BSD) && BSD >= 199506) + u_int64_t l = (u_int64_t) a * b + (u_int64_t)0x8000; +#else |