From 2f9b7c5a0eec0a064f0702c46b0b67bf8fd955e0 Mon Sep 17 00:00:00 2001 From: minskim Date: Sat, 2 Apr 2005 16:24:40 +0000 Subject: Undefine _POSIX_SOURCE temporarily because Darwin's fnmatch.h does not declare fnmatch if _POSIX_SOURCE is defined. --- archivers/ppmd/patches/patch-ac | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'archivers/ppmd/patches') 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 + #include + #include ++#ifdef __APPLE__ ++#undef _POSIX_SOURCE ++#endif + #include ++#ifdef __APPLE__ ++#define _POSIX_SOURCE ++#endif + #if defined(__DJGPP__) + #include + 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; } -- cgit v1.2.3