From 2352bd4da2b2ec1dc8d7579066f64d70c7afd1dd Mon Sep 17 00:00:00 2001 From: Konst Mayer Date: Fri, 13 Jul 2018 20:26:18 +0700 Subject: Fix typo in a macro name --- lib/portability.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3