summaryrefslogtreecommitdiff
path: root/archivers/ppmd
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-04-02 16:24:40 +0000
committerminskim <minskim@pkgsrc.org>2005-04-02 16:24:40 +0000
commit2f9b7c5a0eec0a064f0702c46b0b67bf8fd955e0 (patch)
tree85fc3d128f851f4f813b7ac8e3952d42f1041213 /archivers/ppmd
parentd4a56c5fea704e412069e3ae9ef367d3e128a485 (diff)
downloadpkgsrc-2f9b7c5a0eec0a064f0702c46b0b67bf8fd955e0.tar.gz
Undefine _POSIX_SOURCE temporarily because Darwin's fnmatch.h does not
declare fnmatch if _POSIX_SOURCE is defined.
Diffstat (limited to 'archivers/ppmd')
-rw-r--r--archivers/ppmd/distinfo4
-rw-r--r--archivers/ppmd/patches/patch-ac20
2 files changed, 19 insertions, 5 deletions
diff --git a/archivers/ppmd/distinfo b/archivers/ppmd/distinfo
index 275b80a696a..a2ccab4074e 100644
--- a/archivers/ppmd/distinfo
+++ b/archivers/ppmd/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 14:45:25 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/04/02 16:24:40 minskim Exp $
SHA1 (ppmdi1.rar) = 8d9780f78e5131f0f21ba0519d13f6d92a8eec82
RMD160 (ppmdi1.rar) = 16fd62db9c17e6c65b4134ed322a2fce8c1f59dc
Size (ppmdi1.rar) = 72270 bytes
SHA1 (patch-aa) = 72bfec6320828b7b4456554a1134d5dfbb591a10
SHA1 (patch-ab) = a5e1fa839a8aa826ae3c00e08908c9a2d1f841a6
-SHA1 (patch-ac) = 9ef43eb6bf1080b89843265a52a1f5316629198b
+SHA1 (patch-ac) = 012e61b5895dcfcab20b22a822eb4c273bdeb822
diff --git a/archivers/ppmd/patches/patch-ac b/archivers/ppmd/patches/patch-ac
index 7a3868eb2a9..fd08e4e9319 100644
--- a/archivers/ppmd/patches/patch-ac
+++ b/archivers/ppmd/patches/patch-ac
@@ -1,8 +1,22 @@
-$NetBSD: patch-ac,v 1.1 2004/04/17 23:47:36 ben Exp $
+$NetBSD: patch-ac,v 1.2 2005/04/02 16:24:40 minskim Exp $
---- PPMd.cpp.orig 2004-04-17 16:38:06.000000000 -0700
+--- PPMd.cpp.orig Sat Apr 2 09:39:52 2005
+++ PPMd.cpp
-@@ -215,7 +215,7 @@ void _STDCALL PrintInfo(_PPMD_FILE* Deco
+@@ -107,7 +107,13 @@ struct ENV_FILE_FINDER {
+ #include <utime.h>
+ #include <dirent.h>
+ #include <unistd.h>
++#ifdef __APPLE__
++#undef _POSIX_SOURCE
++#endif
+ #include <fnmatch.h>
++#ifdef __APPLE__
++#define _POSIX_SOURCE
++#endif
+ #if defined(__DJGPP__)
+ #include <crt0.h>
+ char **__crt0_glob_function (char *arg) { return 0; }
+@@ -215,7 +221,7 @@ void _STDCALL PrintInfo(_PPMD_FILE* Deco
UINT n1=(8U*NEnc)/NDec;
UINT n2=(100U*(8U*NEnc-NDec*n1)+NDec/2U)/NDec;
if (n2 == 100) { n1++; n2=0; }