summaryrefslogtreecommitdiff
path: root/archivers/xz/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/xz/patches/patch-ab')
-rw-r--r--archivers/xz/patches/patch-ab4
1 files changed, 2 insertions, 2 deletions
diff --git a/archivers/xz/patches/patch-ab b/archivers/xz/patches/patch-ab
index c019dcee416..8b6bf908f9e 100644
--- a/archivers/xz/patches/patch-ab
+++ b/archivers/xz/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1 2009/09/04 16:57:14 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2010/03/20 19:46:14 wiz Exp $
--- src/common/physmem.h.orig 2009-08-27 15:37:12.000000000 +0000
+++ src/common/physmem.h
@@ -7,7 +7,7 @@ $NetBSD: patch-ab,v 1.1 2009/09/04 16:57:14 wiz Exp $
} mem;
size_t mem_ptr_size = sizeof(mem.u64);
- if (!sysctl(name, 2, &mem.u64, &mem_ptr_size, NULL, NULL)) {
-+ if (sysctl(name, 2, &mem.u64, &mem_ptr_size, NULL, 0) > 0) {
++ if (sysctl(name, 2, &mem.u64, &mem_ptr_size, NULL, 0) != -1) {
// IIRC, 64-bit "return value" is possible on some 64-bit
// BSD systems even with HW_PHYSMEM (instead of HW_PHYSMEM64),
// so support both.