diff options
Diffstat (limited to 'util/secmem.c')
-rw-r--r-- | util/secmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/secmem.c b/util/secmem.c index 308b6bb46..1420597e8 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -100,6 +100,9 @@ lock_pool( void *p, size_t n ) #ifdef ENOSYS /* Some SCOs return this (function not implemented) */ && errno != ENOSYS #endif + #ifdef ENOMEM /* Linux can return this */ + && errno != ENOMEM + #endif ) log_error("can't lock memory: %s\n", strerror(err)); show_warning = 1; @@ -142,6 +145,9 @@ lock_pool( void *p, size_t n ) #ifdef ENOSYS /* Some SCOs return this (function not implemented) */ && errno != ENOSYS #endif + #ifdef ENOMEM /* Linux can return this */ + && errno != ENOMEM + #endif ) log_error("can't lock memory: %s\n", strerror(err)); show_warning = 1; |