From: Scott Date: Wed, 14 Oct 2015 19:16:59 +0000 (-0400) Subject: Update random.c X-Git-Tag: php-7.0.1RC1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00e3b7614e5f6d845f1135d2e559638be525af24;p=php Update random.c Ref: https://github.com/jedisct1/libsodium/commit/beb826f6fd173cff4473c8b7614033dbd4803500 --- diff --git a/ext/standard/random.c b/ext/standard/random.c index 70568799de..bf3a2bc321 100644 --- a/ext/standard/random.c +++ b/ext/standard/random.c @@ -144,8 +144,8 @@ static int php_random_bytes(void *bytes, size_t size) } /* Does the file exist and is it a character device? */ if (fstat(fd, &st) != 0 || -# ifdef S_IFNAM - !(S_IFNAM(st.st_mode) || S_ISCHR(st.st_mode)) +# ifdef S_ISNAM + !(S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode)) # else !S_ISCHR(st.st_mode) # endif