summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-08-26 04:04:11 +0000
committermarkd <markd@pkgsrc.org>2004-08-26 04:04:11 +0000
commit6c1a3bb57d950e90bc22e471a990aed3a5729bf4 (patch)
treed548c14871dbd66c6929ad8146ba73c0726ccee9 /x11
parentfcb6f9428ac0534b12cbf8b4c14a2ccebc4af382 (diff)
downloadpkgsrc-6c1a3bb57d950e90bc22e471a990aed3a5729bf4.tar.gz
Fix build on NetBSD < 1.6U (no readdir_r()).
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs3/distinfo3
-rw-r--r--x11/kdelibs3/patches/patch-cg26
2 files changed, 28 insertions, 1 deletions
diff --git a/x11/kdelibs3/distinfo b/x11/kdelibs3/distinfo
index 6f1414cd333..36c51d1a5cf 100644
--- a/x11/kdelibs3/distinfo
+++ b/x11/kdelibs3/distinfo
@@ -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-bv) = 882355f9dd9cdbbbe14d54e5c59b630ef0347e1c
SHA1 (patch-cc) = d52e3beff19ed287a4635c8da5ab7a69a8e3c0f3
SHA1 (patch-ce) = e9f7a348b0e4be1475ba8f56a8b474f139eb7781
SHA1 (patch-cf) = 0409b64ee00f355bfc2056e596b519a241fcf522
+SHA1 (patch-cg) = 40f7dc34c6c87e05c53b3d94d12d2b9e7b34c97a
diff --git a/x11/kdelibs3/patches/patch-cg b/x11/kdelibs3/patches/patch-cg
new file mode 100644
index 00000000000..910eeffa03b
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-cg
@@ -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
+