Fix Cygwin NonblockingRng build due to missing O_NOFOLLOW

This commit is contained in:
Jeffrey Walton 2022-02-27 16:28:32 -05:00
parent 2ef3254fe1
commit 458a69fdbc

@ -33,12 +33,17 @@
# include <stdlib.h>
#endif
// Solaris links /dev/urandom -> .../devices/pseudo/random@0:urandom
// Avoid O_NOFOLLOW for the Solaris platform.
// Solaris links /dev/urandom -> ../devices/pseudo/random@0:urandom
// We can't access the device. Avoid O_NOFOLLOW for the platform.
#ifdef __sun
# define DONT_USE_O_NOFOLLOW 1
#endif
// And other OSes that don't define it
#ifndef O_NOFOLLOW
# define DONT_USE_O_NOFOLLOW 1
#endif
#ifdef CRYPTOPP_WIN32_AVAILABLE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>