From 7c87b2b4b737f98b9f9c489c5b79ebde1d158d41 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 30 Oct 2008 19:27:20 +0000 Subject: Define __UNCONST. From PR 39797. --- pkgtools/libnbcompat/files/db/hash/hash.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkgtools/libnbcompat/files') diff --git a/pkgtools/libnbcompat/files/db/hash/hash.c b/pkgtools/libnbcompat/files/db/hash/hash.c index d63f9812fb4..d2d0872ff2f 100644 --- a/pkgtools/libnbcompat/files/db/hash/hash.c +++ b/pkgtools/libnbcompat/files/db/hash/hash.c @@ -1,4 +1,4 @@ -/* $NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $ */ +/* $NetBSD: hash.c,v 1.2 2008/10/30 19:27:20 joerg Exp $ */ /* NetBSD: hash.c,v 1.30 2008/09/11 12:58:00 joerg Exp */ /*- @@ -36,9 +36,9 @@ #include #include -__RCSID("$NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $"); +__RCSID("$NetBSD: hash.c,v 1.2 2008/10/30 19:27:20 joerg Exp $"); -#include +#include #include #include @@ -54,6 +54,8 @@ __RCSID("$NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $"); #include "page.h" #include "extern.h" +#define __UNCONST(a) ((void *)(size_t)(const void *)(a)) + static int alloc_segs(HTAB *, int); static int flush_meta(HTAB *); static int hash_access(HTAB *, ACTION, DBT *, DBT *); -- cgit v1.2.3