From 37a8e8e2fe93b45ab3b39108d9af4b75cf4dd663 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 13 Sep 2015 08:31:48 +0000 Subject: Wrap so that calls go direct and the symbols not in the C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols. --- src/lib/libc/crypt/arc4random.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libc/crypt/arc4random.c') diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 5afc6a15ab..8a4ecc9e89 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc4random.c,v 1.53 2015/09/10 18:53:50 bcook Exp $ */ +/* $OpenBSD: arc4random.c,v 1.54 2015/09/13 08:31:47 guenther Exp $ */ /* * Copyright (c) 1996, David Mazieres @@ -186,6 +186,7 @@ arc4random(void) _ARC4_UNLOCK(); return val; } +DEF_WEAK(arc4random); void arc4random_buf(void *buf, size_t n) @@ -194,3 +195,4 @@ arc4random_buf(void *buf, size_t n) _rs_random_buf(buf, n); _ARC4_UNLOCK(); } +DEF_WEAK(arc4random_buf); -- cgit v1.2.3-55-g6feb