aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKonst Mayer <cdlscpmv@gmail.com>2018-07-13 20:26:18 +0700
committerRob Landley <rob@landley.net>2018-07-13 12:48:08 -0500
commit2352bd4da2b2ec1dc8d7579066f64d70c7afd1dd (patch)
tree78662d515633092c60c49e1236fd67c7f839581e /lib
parent0bce1bdafb1b5ad35c459fa3cf2ba0cdf74c7c16 (diff)
downloadtoybox-2352bd4da2b2ec1dc8d7579066f64d70c7afd1dd.tar.gz
Fix typo in a macro name
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 80ca8c9a..1415141f 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -36,7 +36,7 @@ void xgetrandom(void *buf, unsigned buflen, unsigned flags)
#if CFG_TOYBOX_GETRANDOM
if (buflen != getrandom(buf, buflen, flags))
- if (!CFG_TOYBOX_ANDROID || errno!=ENOSYS) perror_exit("getrandom");
+ if (!CFG_TOYBOX_ON_ANDROID || errno!=ENOSYS) perror_exit("getrandom");
#endif
fd = xopen(flags ? "/dev/random" : "/dev/urandom", O_RDONLY);