summaryrefslogtreecommitdiff
path: root/editors/heme
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-09 14:45:05 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-09 14:45:05 +0000
commitb1778bc6d1591000bad6ae2710027dcb7bb5fba0 (patch)
tree96ce37ff8d065f707cc95a386171f4e9151e1d73 /editors/heme
parentb7a0b387955707b1e21383a9f5df14aaa5020d0e (diff)
downloadpkgsrc-b1778bc6d1591000bad6ae2710027dcb7bb5fba0.tar.gz
Use only _SC_PAGESIZE on DragonFly, _SC_PAGE_SIZE does't exist.
Diffstat (limited to 'editors/heme')
-rw-r--r--editors/heme/distinfo3
-rw-r--r--editors/heme/patches/patch-ab14
2 files changed, 16 insertions, 1 deletions
diff --git a/editors/heme/distinfo b/editors/heme/distinfo
index f9517499a00..6b5ddeea5d8 100644
--- a/editors/heme/distinfo
+++ b/editors/heme/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/10/01 05:57:30 minskim Exp $
+$NetBSD: distinfo,v 1.2 2005/12/09 14:45:05 joerg Exp $
SHA1 (heme-0.4.tar.gz) = ae7727f9861e0ac36eeac7ddccb62739468f1251
RMD160 (heme-0.4.tar.gz) = 478f527f8e4968968d0d055fddc1cdb98b632a8e
Size (heme-0.4.tar.gz) = 21370 bytes
SHA1 (patch-aa) = d64d01c8f3505b75dfa54f2291b63055b5a17e91
+SHA1 (patch-ab) = cd3de9143f9a1bdb384525041d9b719c755525aa
diff --git a/editors/heme/patches/patch-ab b/editors/heme/patches/patch-ab
new file mode 100644
index 00000000000..7ce036bef01
--- /dev/null
+++ b/editors/heme/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2005/12/09 14:45:05 joerg Exp $
+
+--- heme.c.orig 2005-12-09 14:34:15.000000000 +0000
++++ heme.c
+@@ -1332,6 +1332,9 @@ static void init_blocksize()
+ off_len = PAGESIZE;
+ # elif defined(_PAGESIZE)
+ off_len = _PAGESIZE;
++# elif defined(__DragonFly__)
++ if((off_len = sysconf(_SC_PAGESIZE)) <= 1)
++ off_len = 4096;
+ # else
+ if((off_len = sysconf(_SC_PAGESIZE)) <= 1 &&
+ (off_len = sysconf(_SC_PAGE_SIZE)) <= 1)