diff options
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/random.c b/cipher/random.c index 0258f5dd0..6f31b5625 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -604,7 +604,9 @@ fast_random_poll() #endif #else { struct rusage buf; - if( getrusage( RUSAGE_SELF, &buf ) ) + /* QNX/Neutrino does return ENOSYS - so we just ignore it and + * add whatever is in buf */ + if( getrusage( RUSAGE_SELF, &buf ) && errno != ENOSYS ) BUG(); add_randomness( &buf, sizeof buf, 1 ); memset( &buf, 0, sizeof buf ); |