summaryrefslogtreecommitdiff
path: root/graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2010-08-03 10:26:57 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2010-08-03 10:26:57 +0000
commit214b06a42c3d7c239b4a04ea91486973892707ba (patch)
treeafa55c4a92e026d48ee93107fc05d648ce9e4b8e /graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c
parentAllows building executables simply from sbcl. (diff)
Add graphics/libecwj2 that implements support for the JPEG2000 and
ECW image formats. Submitted by: glebius
Notes
Notes: svn path=/head/; revision=258676
Diffstat (limited to 'graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c')
-rw-r--r--graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c b/graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c
new file mode 100644
index 000000000000..28a7684a72f3
--- /dev/null
+++ b/graphics/libecwj2/files/patch-Source-C-NCSUtil-file.c
@@ -0,0 +1,24 @@
+--- Source/C/NCSUtil/file.c.orig 2006-07-03 05:15:02.000000000 +0400
++++ Source/C/NCSUtil/file.c 2010-07-29 16:40:02.000000000 +0400
+@@ -203,8 +203,10 @@
+ return (INT64) lseek64(hFile, (off64_t)nOffset, origin);
+ #elif defined IRIX
+ return (INT64) lseek64(hFile, (off64_t)nOffset, origin);
+-#elif defined MACOSX
+- return (INT64) lseek(hFile, nOffset, origin);
++#elif defined MACOSX || defined FREEBSD
++ return (INT64) lseek(hFile, nOffset, origin);
++#else
++#error NCSFileSeekNative() routine is not defined for this platform
+ #endif
+ }
+
+@@ -253,6 +255,8 @@
+ return (INT64) lseek64(hFile, (off64_t)0, SEEK_CUR);
+ #elif defined MACOSX
+ return (INT64) lseek(hFile, (long)0, SEEK_CUR);
++#elif defined FREEBSD
++ return (INT64) lseek(hFile, (off_t)0, SEEK_CUR);
+ #else
+ #error ERROR: EcwFileGetPos() routine is not defined for this platform
+ #endif