diff options
author | christos <christos@pkgsrc.org> | 2012-05-15 16:45:45 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2012-05-15 16:45:45 +0000 |
commit | c362129c2538901f7a4e0aa97f667e9181a5d84e (patch) | |
tree | fcc2e3cc01d816f804cdc9ae8a77a1ba2ef87c90 /pkgtools | |
parent | 5d7a28b7887cf6d5fcf9b33828d7e8d89720b2ef (diff) | |
download | pkgsrc-c362129c2538901f7a4e0aa97f667e9181a5d84e.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.c | 6 |
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 *); |