S_IFNAM -> S_ISNAM (for QNX)

This commit is contained in:
Frank Denis
2015-10-14 20:19:57 +02:00
parent 676d8a1a9b
commit beb826f6fd
2 changed files with 4 additions and 4 deletions
@@ -135,8 +135,8 @@ randombytes_salsa20_random_random_dev_open(void)
fd = open(*device, O_RDONLY);
if (fd != -1) {
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
@@ -120,8 +120,8 @@ randombytes_sysrandom_random_dev_open(void)
fd = open(*device, O_RDONLY);
if (fd != -1) {
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