Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add weak symbol for murmurhash2.
details: https://anonhg.NetBSD.org/src/rev/8c1121ec24d2
branches: trunk
changeset: 780061:8c1121ec24d2
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Jul 09 21:25:46 2012 +0000
description:
Add weak symbol for murmurhash2.
diffstat:
common/lib/libc/hash/murmurhash/murmurhash.c | 16 +++++++++++-----
lib/libc/include/namespace.h | 3 ++-
2 files changed, 13 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 82794e89b247 -r 8c1121ec24d2 common/lib/libc/hash/murmurhash/murmurhash.c
--- a/common/lib/libc/hash/murmurhash/murmurhash.c Mon Jul 09 21:22:21 2012 +0000
+++ b/common/lib/libc/hash/murmurhash/murmurhash.c Mon Jul 09 21:25:46 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: murmurhash.c,v 1.2 2012/07/08 13:42:29 rmind Exp $ */
+/* $NetBSD: murmurhash.c,v 1.3 2012/07/09 21:25:46 rmind Exp $ */
/*
* MurmurHash2 -- from the original code:
@@ -12,13 +12,19 @@
*/
#include <sys/cdefs.h>
+
+#if defined(_KERNEL) || defined(_STANDALONE)
+__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.3 2012/07/09 21:25:46 rmind Exp $");
+#else
+__RCSID("$NetBSD: murmurhash.c,v 1.3 2012/07/09 21:25:46 rmind Exp $");
+#endif
+
+#include "namespace.h"
#include <sys/types.h>
#include <sys/hash.h>
-#if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.2 2012/07/08 13:42:29 rmind Exp $");
-#else
-__RCSID("$NetBSD: murmurhash.c,v 1.2 2012/07/08 13:42:29 rmind Exp $");
+#ifdef __weak_alias
+__weak_alias(murmurhash2,_murmurhash2)
#endif
uint32_t
diff -r 82794e89b247 -r 8c1121ec24d2 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Mon Jul 09 21:22:21 2012 +0000
+++ b/lib/libc/include/namespace.h Mon Jul 09 21:25:46 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.154 2012/06/03 21:42:46 joerg Exp $ */
+/* $NetBSD: namespace.h,v 1.155 2012/07/09 21:25:46 rmind Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -458,6 +458,7 @@
#define mq_timedreceive _mq_timedreceive
#define mq_timedsend _mq_timedsend
#define mrand48 _mrand48
+#define murmurhash2 _murmurhash2
#define nc_perror _nc_perror
#define nc_sperror _nc_sperror
#define nanosleep _nanosleep
Home |
Main Index |
Thread Index |
Old Index