pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/kdelibs3 Fix build on NetBSD < 1.6U (no readdir_r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/00c45cb717ad
branches:  trunk
changeset: 479916:00c45cb717ad
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Aug 26 04:04:11 2004 +0000

description:
Fix build on NetBSD < 1.6U  (no readdir_r()).

diffstat:

 x11/kdelibs3/distinfo         |   3 ++-
 x11/kdelibs3/patches/patch-cg |  26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r ac848ca154e4 -r 00c45cb717ad x11/kdelibs3/distinfo
--- a/x11/kdelibs3/distinfo     Thu Aug 26 01:34:20 2004 +0000
+++ b/x11/kdelibs3/distinfo     Thu Aug 26 04:04:11 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.40 2004/08/22 03:10:49 markd Exp $
+$NetBSD: distinfo,v 1.41 2004/08/26 04:04:11 markd Exp $
 
 SHA1 (kdelibs-3.3.0.tar.bz2) = 5016734fea03055fbf8331d6c262289cff18b880
 Size (kdelibs-3.3.0.tar.bz2) = 15703843 bytes
@@ -14,3 +14,4 @@
 SHA1 (patch-cc) = d52e3beff19ed287a4635c8da5ab7a69a8e3c0f3
 SHA1 (patch-ce) = e9f7a348b0e4be1475ba8f56a8b474f139eb7781
 SHA1 (patch-cf) = 0409b64ee00f355bfc2056e596b519a241fcf522
+SHA1 (patch-cg) = 40f7dc34c6c87e05c53b3d94d12d2b9e7b34c97a
diff -r ac848ca154e4 -r 00c45cb717ad x11/kdelibs3/patches/patch-cg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kdelibs3/patches/patch-cg     Thu Aug 26 04:04:11 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-cg,v 1.1 2004/08/26 04:04:11 markd Exp $
+
+--- kio/kio/kurlcompletion.cpp.orig    2004-06-23 05:36:41.000000000 +1200
++++ kio/kio/kurlcompletion.cpp
+@@ -54,6 +54,9 @@
+ #include <sys/stat.h>
+ #include <pwd.h>
+ #include <time.h>
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
+ 
+ #include "kurlcompletion.h"
+ 
+@@ -222,7 +225,11 @@ void DirectoryListThread::run()
+               struct dirent dirPosition;
+               struct dirent *dirEntry = 0;
+               while ( !terminationRequested() &&
++#if defined(__NetBSD__) && __NetBSD_Version__ < 106210000  /* NetBSD 1.6U */
++                      (dirEntry = ::readdir( dir )))
++#else
+                       ::readdir_r( dir, &dirPosition, &dirEntry ) == 0 && dirEntry )
++#endif
+               {
+                       // Skip hidden files if m_noHidden is true
+ 



Home | Main Index | Thread Index | Old Index