summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2019-07-24 18:44:35 -0700
committerMatt Turner <[email protected]>2019-07-30 11:49:09 -0700
commitc96407f37ef8325db11ae5fdb16e372cbc663bf4 (patch)
tree842a8e1a596c4a8b230b8942913890c9331e496d /src
parent9cc4311d86a797bba26448bcaf24db4887c6ec8d (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/glxhash.c2
1 files changed, 1 insertions, 1 deletions
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()