summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files
diff options
context:
space:
mode:
authorjoerg <joerg>2008-10-30 19:27:20 +0000
committerjoerg <joerg>2008-10-30 19:27:20 +0000
commit7c87b2b4b737f98b9f9c489c5b79ebde1d158d41 (patch)
treea8e32ee8ca0647206565821adb82edc90bb6b947 /pkgtools/libnbcompat/files
parentebaed407ec0f0502be0d519dd36d7c2b52d1e831 (diff)
downloadpkgsrc-7c87b2b4b737f98b9f9c489c5b79ebde1d158d41.tar.gz
Define __UNCONST. From PR 39797.
Diffstat (limited to 'pkgtools/libnbcompat/files')
-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 *);