From 9162028887ac2cd40e66b08868748e53f8d9d1ac Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 24 Aug 2006 19:58:36 +1000 Subject: - (dtucker) [openbsd-compat/xmmap.c] Move #define HAVE_MMAP to prevent unused variable warning when we have a broken or missing mmap(2). Now with 100% more diff! --- openbsd-compat/xmmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd-compat/xmmap.c b/openbsd-compat/xmmap.c index 95d5055b5..0fb23269b 100644 --- a/openbsd-compat/xmmap.c +++ b/openbsd-compat/xmmap.c @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: xmmap.c,v 1.11 2006/08/05 05:47:27 dtucker Exp $ */ +/* $Id: xmmap.c,v 1.12 2006/08/24 09:58:36 dtucker Exp $ */ #include "includes.h" @@ -45,9 +45,9 @@ void *xmmap(size_t size) { +#ifdef HAVE_MMAP void *address; -#ifdef HAVE_MMAP # ifdef MAP_ANON address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, (off_t)0); -- cgit v1.2.3