From 1fd455f4c7c38541187a67136533b0cb2ef5de56 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Mon, 22 Jan 2001 14:01:29 +0000 Subject: PAGE_SHIFT can be a define, avoid double-define. --- lib/libkvm/kvm_alpha.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libkvm/kvm_alpha.c b/lib/libkvm/kvm_alpha.c index ee7b749a50e..84f385d9951 100644 --- a/lib/libkvm/kvm_alpha.c +++ b/lib/libkvm/kvm_alpha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_alpha.c,v 1.5 2000/11/08 18:40:48 ericj Exp $ */ +/* $OpenBSD: kvm_alpha.c,v 1.6 2001/01/22 14:01:28 art Exp $ */ /* $NetBSD: kvm_alpha.c,v 1.5 1996/10/01 21:12:05 cgd Exp $ */ /* @@ -109,7 +109,9 @@ _kvm_kvatop(kd, va, pa) vm = kd->vmst; page_off = va & (cpu_kh->page_size - 1); +#ifndef PAGE_SHIFT #define PAGE_SHIFT vm->page_shift +#endif if (va >= ALPHA_K0SEG_BASE && va <= ALPHA_K0SEG_END) { /* -- cgit v1.2.3