summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/qemu/util/hbitmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/qemu/util/hbitmap.c b/contrib/qemu/util/hbitmap.c
index d93683128bd..e063e681f52 100644
--- a/contrib/qemu/util/hbitmap.c
+++ b/contrib/qemu/util/hbitmap.c
@@ -92,10 +92,12 @@ struct HBitmap {
unsigned long *levels[HBITMAP_LEVELS];
};
+#ifndef __NetBSD__ /* we have it in <strings.h> */
static inline int popcountl(unsigned long l)
{
return BITS_PER_LONG == 32 ? ctpop32(l) : ctpop64(l);
}
+#endif
/* Advance hbi to the next nonzero word and return it. hbi->pos
* is updated. Returns zero if we reach the end of the bitmap.