summaryrefslogtreecommitdiff
path: root/editors/heme/patches
diff options
context:
space:
mode:
Diffstat (limited to 'editors/heme/patches')
-rw-r--r--editors/heme/patches/patch-ab14
1 files changed, 14 insertions, 0 deletions
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)