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/stdlib/rand.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/libc/stdlib/rand.c') diff --git a/src/lib/libc/stdlib/rand.c b/src/lib/libc/stdlib/rand.c index f163581e8d..7054b81c64 100644 --- a/src/lib/libc/stdlib/rand.c +++ b/src/lib/libc/stdlib/rand.c @@ -39,6 +39,7 @@ rand_r(u_int *seed) *seed = *seed * 1103515245 + 12345; return (*seed % ((u_int)RAND_MAX + 1)); } +DEF_WEAK(rand_r); #if defined(APIWARN) __warn_references(rand_r, -- cgit v1.2.3-55-g6feb