Skip to content

Commit

Permalink
fix bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangying000 committed Sep 3, 2022
1 parent 0a31fc7 commit c091aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/cryptonight-rs/ext/oaes_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// ANDROID, FreeBSD, OpenBSD and NetBSD also don't need timeb.h
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__ANDROID__) \
&& !defined(__NetBSD__) \
|| (defined(__GLIBC__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 31)
&& (defined(__GLIBC__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 31)
#include <sys/timeb.h>
#else
// use gettimeofday to get rid of `ftime` warning if glibc >= 2.31
Expand Down Expand Up @@ -509,7 +509,7 @@ static void oaes_get_seed( char buf[RANDSIZ + 1] )
static uint32_t oaes_get_seed(void)
{
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__ANDROID__) && !defined(__NetBSD__) \
|| (defined(__GLIBC__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 31)
&& (defined(__GLIBC__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 31)
struct timeb timer;
struct tm *gmTimer;
char * _test = NULL;
Expand Down

0 comments on commit c091aa9

Please sign in to comment.