summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorchristos <christos>2012-05-15 16:45:45 +0000
committerchristos <christos>2012-05-15 16:45:45 +0000
commit1887e2807445fb08f91a1e487e3aff34dc54c82f (patch)
treefcc2e3cc01d816f804cdc9ae8a77a1ba2ef87c90 /pkgtools
parent61aa34d09eb8c960b93fee06d8dd432250652a77 (diff)
downloadpkgsrc-1887e2807445fb08f91a1e487e3aff34dc54c82f.tar.gz
Don't re-define __UNCONST if it is already defined. On old NetBSD systems
the definition is a bit different so they bitch.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/files/db/hash/hash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/files/db/hash/hash.c b/pkgtools/libnbcompat/files/db/hash/hash.c
index 50c149927d5..71c3a309d19 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.3 2010/04/20 00:32:23 joerg Exp $ */
+/* $NetBSD: hash.c,v 1.4 2012/05/15 16:45:45 christos Exp $ */
/* NetBSD: hash.c,v 1.30 2008/09/11 12:58:00 joerg Exp */
/*-
@@ -36,7 +36,7 @@
#include <nbcompat.h>
#include <nbcompat/cdefs.h>
-__RCSID("$NetBSD: hash.c,v 1.3 2010/04/20 00:32:23 joerg Exp $");
+__RCSID("$NetBSD: hash.c,v 1.4 2012/05/15 16:45:45 christos Exp $");
#include <nbcompat/param.h>
#include <sys/stat.h>
@@ -58,7 +58,9 @@ __RCSID("$NetBSD: hash.c,v 1.3 2010/04/20 00:32:23 joerg Exp $");
#include "../pwrite.c"
#endif
+#ifndef __UNCONST
#define __UNCONST(a) ((void *)(size_t)(const void *)(a))
+#endif
static int alloc_segs(HTAB *, int);
static int flush_meta(HTAB *);