diff options
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cipher/random.c b/cipher/random.c index 8ade26c11..5af5349df 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -408,12 +408,18 @@ fast_random_poll() #endif #endif #ifdef HAVE_GETRUSAGE + #ifndef RUSAGE_SELF + #ifdef __GCC__ + #warning There is no RUSAGE_SELF on this system + #endif + #else { struct rusage buf; if( getrusage( RUSAGE_SELF, &buf ) ) BUG(); add_randomness( &buf, sizeof buf, 1 ); memset( &buf, 0, sizeof buf ); } + #endif #endif } |