mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-03-01 01:46:55 +00:00
Fix Cygwin NonblockingRng build due to missing O_NOFOLLOW
This commit is contained in:
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user