Use only _SC_PAGESIZE on DragonFly, _SC_PAGE_SIZE does't exist.

This commit is contained in:
joerg 2005-12-09 14:45:05 +00:00
parent bc3e24b5f1
commit 383bb886ad
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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)