Enable use of getentropy() and explicit_bzero() in Cygwin build.
This commit is contained in:
parent
3fcaa5f40c
commit
968a5f7032
@ -50,7 +50,7 @@ static INLINE size_t MIN_SIZE(const size_t a, const size_t b) { return (a > b) ?
|
|||||||
#undef HAVE_WIN32RTLGENRANDOM
|
#undef HAVE_WIN32RTLGENRANDOM
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
# define HAVE_WIN32RTLGENRANDOM 1
|
# define HAVE_WIN32RTLGENRANDOM 1
|
||||||
#elif (defined(__linux__) && !defined(__UCLIBC__)) || (defined(__FreeBSD__) && (__FreeBSD__ >= 12)) || defined(__DragonFly__) || defined(__OpenBSD__) || (defined(__sun) && defined(__SVR4)) || (defined(__APPLE__) && defined(__MACH__))
|
#elif (defined(__linux__) && !defined(__UCLIBC__)) || defined(__CYGWIN__) || (defined(__FreeBSD__) && (__FreeBSD__ >= 12)) || defined(__DragonFly__) || defined(__OpenBSD__) || (defined(__sun) && defined(__SVR4)) || (defined(__APPLE__) && defined(__MACH__))
|
||||||
# define HAVE_GETENTROPY 1
|
# define HAVE_GETENTROPY 1
|
||||||
#else
|
#else
|
||||||
# pragma message("Function getentropy() is *not* available -> using fallback!")
|
# pragma message("Function getentropy() is *not* available -> using fallback!")
|
||||||
@ -60,7 +60,7 @@ static INLINE size_t MIN_SIZE(const size_t a, const size_t b) { return (a > b) ?
|
|||||||
#undef EXPLICIT_BZERO
|
#undef EXPLICIT_BZERO
|
||||||
#if defined(_WIN32) && defined(SecureZeroMemory)
|
#if defined(_WIN32) && defined(SecureZeroMemory)
|
||||||
# define EXPLICIT_BZERO SecureZeroMemory
|
# define EXPLICIT_BZERO SecureZeroMemory
|
||||||
#elif (defined(__linux__) && !defined(__UCLIBC__)) || (defined(__FreeBSD__) && (__FreeBSD__ >= 11)) || defined(__DragonFly__) || defined(__OpenBSD__) || (defined(__sun) && defined(__SVR4)) || defined(__HAIKU__)
|
#elif (defined(__linux__) && !defined(__UCLIBC__)) || defined(__CYGWIN__) || (defined(__FreeBSD__) && (__FreeBSD__ >= 11)) || defined(__DragonFly__) || defined(__OpenBSD__) || (defined(__sun) && defined(__SVR4)) || defined(__HAIKU__)
|
||||||
# define EXPLICIT_BZERO explicit_bzero
|
# define EXPLICIT_BZERO explicit_bzero
|
||||||
#else
|
#else
|
||||||
# pragma message("Function explicit_bzero() is *not* available -> using fallback!")
|
# pragma message("Function explicit_bzero() is *not* available -> using fallback!")
|
||||||
|
Loading…
Reference in New Issue
Block a user