From c96407f37ef8325db11ae5fdb16e372cbc663bf4 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 24 Jul 2019 18:44:35 -0700 Subject: meson: Test for random_r() It's better to test for needed functions instead of using external knowledge about presence in this or that C library. Reviewed-by: Eric Engestrom --- src/glx/glxhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glx') diff --git a/src/glx/glxhash.c b/src/glx/glxhash.c index b76ec323459..5a89bf99b1c 100644 --- a/src/glx/glxhash.c +++ b/src/glx/glxhash.c @@ -88,7 +88,7 @@ #define HASH_ALLOC malloc #define HASH_FREE free -#ifndef __GLIBC__ +#ifndef HAVE_RANDOM_R #define HASH_RANDOM_DECL char *ps, rs[256] #define HASH_RANDOM_INIT(seed) ps = initstate(seed, rs, sizeof(rs)) #define HASH_RANDOM random() -- cgit v1.2.3