summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-30 19:27:20 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-30 19:27:20 +0000
commit1cb2d826a6cf136f7a625847c36f8c86441b6651 (patch)
treea8e32ee8ca0647206565821adb82edc90bb6b947
parentf3c5583abde0ff0ea493abb5db2f5a413bda7db3 (diff)
downloadpkgsrc-1cb2d826a6cf136f7a625847c36f8c86441b6651.tar.gz
Define __UNCONST. From PR 39797.
-rw-r--r--pkgtools/libnbcompat/files/db/hash/hash.c8
1 files changed, 5 insertions, 3 deletions
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 <nbcompat.h>
#include <nbcompat/cdefs.h>
-__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 <sys/param.h>
+#include <nbcompat/param.h>
#include <sys/stat.h>
#include <errno.h>
@@ -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 *);