summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-07 14:41:20 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-07 14:41:20 +0000
commit5bad78c8ce657685213737d297cde930d7d2566a (patch)
tree158d4b05376de3893f75b7d06c1e0c39497684e4 /x11
parenta6516149be3e72acba5c051e5f3d9de682772444 (diff)
downloadpkgsrc-5bad78c8ce657685213737d297cde930d7d2566a.tar.gz
If defined, use _DIRENT_DIRSIZ on DragonFly to compute the size of
a dirent. Ignore the bogus size check done before.
Diffstat (limited to 'x11')
-rw-r--r--x11/xforms/distinfo3
-rw-r--r--x11/xforms/patches/patch-ah15
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/xforms/distinfo b/x11/xforms/distinfo
index 59d4ed7d537..b2418cc4a80 100644
--- a/x11/xforms/distinfo
+++ b/x11/xforms/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2005/10/10 12:11:46 joerg Exp $
+$NetBSD: distinfo,v 1.16 2005/11/07 14:41:20 joerg Exp $
SHA1 (xforms-1.0-release.tgz) = e25a31351c52472de88352388cf879512b20fc62
RMD160 (xforms-1.0-release.tgz) = 18ccbff4df5e0e3786341a5ab4f8af6e2fd4fd92
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 324100fb05e723fbaa92126e279074860c842f1b
SHA1 (patch-ae) = ba8b68d7e886311cb2fbfe4e0a45e975e7790821
SHA1 (patch-af) = f3fdbbb2a103505e6f18608f0c3882cc1d264b00
SHA1 (patch-ag) = 3dde38a74cbbb1943eefd78f3df56a8de3c0f74f
+SHA1 (patch-ah) = 45129394ca29063443548d961c7954ea12cc435f
diff --git a/x11/xforms/patches/patch-ah b/x11/xforms/patches/patch-ah
new file mode 100644
index 00000000000..0e8cedbd247
--- /dev/null
+++ b/x11/xforms/patches/patch-ah
@@ -0,0 +1,15 @@
+$NetBSD: patch-ah,v 1.1 2005/11/07 14:41:20 joerg Exp $
+
+--- lib/listdir.c.orig 2005-11-07 14:16:31.000000000 +0000
++++ lib/listdir.c
+@@ -838,7 +838,9 @@ tc_scandir(const char *dirname, struct D
+ d_reclen = strlen(d_name) */
+
+ /* Mathog, VMS<7.0, at least has no d_reclen *at all */
+-#if defined(__VMS) && __VMS_VER < 70000000 || defined opennt || defined __CYGWIN__
++#if defined(__DragonFly__) && defined(_DIRENT_DIRSIZ)
++ total = _DIRENT_DIRSIZ(dentry);
++#elif defined(__VMS) && __VMS_VER < 70000000 || defined opennt || defined __CYGWIN__
+ total = dname_is_1 ? strlen(dentry->d_name) : sizeof(*dentry);
+ #else
+ total = dname_is_1 ? dentry->d_reclen : sizeof(*dentry);