summaryrefslogtreecommitdiff
path: root/archivers/ppmd/patches
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/patches
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/patches')
-rw-r--r--archivers/ppmd/patches/patch-ac20
1 files changed, 17 insertions, 3 deletions
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; }