aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-04-29 15:12:44 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-05-04 14:56:55 +0200
commit0764d323d8908c1682f3ab654c48783438a88a54 (patch)
treee335e7f8f9c3a4d8a6c14bdce81af07102244ad7 /random.c
parentfa7a712d460dc904f8a836bb22b54d457d95ba8e (diff)
downloadruby-0764d323d8908c1682f3ab654c48783438a88a54.tar.gz
Fix -Wundef warnings for patterns `#if HAVE`
* See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index eec017cfd5..2c9fe0c906 100644
--- a/random.c
+++ b/random.c
@@ -428,7 +428,7 @@ random_init(int argc, VALUE *argv, VALUE obj)
# define USE_DEV_URANDOM 0
#endif
-#if HAVE_GETENTROPY
+#ifdef HAVE_GETENTROPY
# define MAX_SEED_LEN_PER_READ 256
static int
fill_random_bytes_urandom(void *seed, size_t size)