pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/ppmd Undefine _POSIX_SOURCE temporarily beca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/321888d495e0
branches:  trunk
changeset: 491976:321888d495e0
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat Apr 02 16:24:40 2005 +0000

description:
Undefine _POSIX_SOURCE temporarily because Darwin's fnmatch.h does not
declare fnmatch if _POSIX_SOURCE is defined.

diffstat:

 archivers/ppmd/distinfo         |   4 ++--
 archivers/ppmd/patches/patch-ac |  20 +++++++++++++++++---
 2 files changed, 19 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 15236d2eed36 -r 321888d495e0 archivers/ppmd/distinfo
--- a/archivers/ppmd/distinfo   Sat Apr 02 15:46:39 2005 +0000
+++ b/archivers/ppmd/distinfo   Sat Apr 02 16:24:40 2005 +0000
@@ -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 -r 15236d2eed36 -r 321888d495e0 archivers/ppmd/patches/patch-ac
--- a/archivers/ppmd/patches/patch-ac   Sat Apr 02 15:46:39 2005 +0000
+++ b/archivers/ppmd/patches/patch-ac   Sat Apr 02 16:24:40 2005 +0000
@@ -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; }



Home | Main Index | Thread Index | Old Index