Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/hash/murmurhash RUMP fix: ifdef weak alias. ...
details: https://anonhg.NetBSD.org/src/rev/7245e5fbc041
branches: trunk
changeset: 787737:7245e5fbc041
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Jun 30 12:20:32 2013 +0000
description:
RUMP fix: ifdef weak alias. Pointed out by martin@.
diffstat:
common/lib/libc/hash/murmurhash/murmurhash.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 630319e62e11 -r 7245e5fbc041 common/lib/libc/hash/murmurhash/murmurhash.c
--- a/common/lib/libc/hash/murmurhash/murmurhash.c Sun Jun 30 11:48:42 2013 +0000
+++ b/common/lib/libc/hash/murmurhash/murmurhash.c Sun Jun 30 12:20:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: murmurhash.c,v 1.4 2012/07/10 17:05:38 christos Exp $ */
+/* $NetBSD: murmurhash.c,v 1.5 2013/06/30 12:20:32 rmind Exp $ */
/*
* MurmurHash2 -- from the original code:
@@ -14,12 +14,12 @@
#include <sys/cdefs.h>
#if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.4 2012/07/10 17:05:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.5 2013/06/30 12:20:32 rmind Exp $");
#else
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: murmurhash.c,v 1.4 2012/07/10 17:05:38 christos Exp $");
+__RCSID("$NetBSD: murmurhash.c,v 1.5 2013/06/30 12:20:32 rmind Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -28,9 +28,11 @@
#include <sys/types.h>
#include <sys/hash.h>
+#if !defined(_KERNEL) && !defined(_STANDALONE)
#ifdef __weak_alias
__weak_alias(murmurhash2,_murmurhash2)
#endif
+#endif
uint32_t
murmurhash2(const void *key, size_t len, uint32_t seed)
Home |
Main Index |
Thread Index |
Old Index