Add weak symbol for murmurhash2.

This commit is contained in:
rmind 2012-07-09 21:25:46 +00:00
parent 156d32710f
commit 6461e5c133
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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