From 00e3b7614e5f6d845f1135d2e559638be525af24 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 14 Oct 2015 15:16:59 -0400 Subject: [PATCH] Update random.c Ref: https://github.com/jedisct1/libsodium/commit/beb826f6fd173cff4473c8b7614033dbd4803500 --- ext/standard/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1