Module Name:    src
Committed By:   joerg
Date:           Fri Mar 19 18:11:30 UTC 2010

Modified Files:
        src/lib/libc/include: namespace.h
        src/lib/libc/stdlib: mi_vector_hash.c

Log Message:
Namespace protection for mi_vector_hash.


To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/lib/libc/include/namespace.h
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/stdlib/mi_vector_hash.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/include/namespace.h
diff -u src/lib/libc/include/namespace.h:1.140 src/lib/libc/include/namespace.h:1.141
--- src/lib/libc/include/namespace.h:1.140	Wed Dec  2 08:46:33 2009
+++ src/lib/libc/include/namespace.h	Fri Mar 19 18:11:30 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: namespace.h,v 1.140 2009/12/02 08:46:33 roy Exp $	*/
+/*	$NetBSD: namespace.h,v 1.141 2010/03/19 18:11:30 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -426,6 +426,7 @@
 #define lrand48			_lrand48
 #define lseek			_lseek
 #define mergesort		_mergesort
+#define mi_vector_hash		_mi_vector_hash
 #define mkstemp			_mkstemp
 #define mmap			_mmap
 #define mpool_close		_mpool_close

Index: src/lib/libc/stdlib/mi_vector_hash.c
diff -u src/lib/libc/stdlib/mi_vector_hash.c:1.2 src/lib/libc/stdlib/mi_vector_hash.c:1.3
--- src/lib/libc/stdlib/mi_vector_hash.c:1.2	Thu Feb  4 10:27:08 2010
+++ src/lib/libc/stdlib/mi_vector_hash.c	Fri Mar 19 18:11:30 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mi_vector_hash.c,v 1.2 2010/02/04 10:27:08 roy Exp $	*/
+/*	$NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $	*/
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -43,7 +43,9 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mi_vector_hash.c,v 1.2 2010/02/04 10:27:08 roy Exp $");
+__RCSID("$NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $");
+
+#include "namespace.h"
 
 #include <sys/endian.h>
 #include <stdint.h>
@@ -63,6 +65,10 @@
 
 #define FIXED_SEED	0x9e3779b9	/* Golden ratio, arbitrary constant */
 
+#ifdef __weak_alias
+__weak_alias(mi_vector_hash, _mi_vector_hash)
+#endif
+
 void
 mi_vector_hash(const void * __restrict key, size_t len, uint32_t seed,
     uint32_t hashes[3])

Reply via email to