diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-09 14:45:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-09 14:45:05 +0000 |
commit | 383bb886ad0dfc7ee4c220e33259af1293473a4b (patch) | |
tree | 96ce37ff8d065f707cc95a386171f4e9151e1d73 /editors/heme/patches | |
parent | bc3e24b5f14d5bab501efef737e663ac733de697 (diff) | |
download | pkgsrc-383bb886ad0dfc7ee4c220e33259af1293473a4b.tar.gz |
Use only _SC_PAGESIZE on DragonFly, _SC_PAGE_SIZE does't exist.
Diffstat (limited to 'editors/heme/patches')
-rw-r--r-- | editors/heme/patches/patch-ab | 14 |
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) |