Fix regression in broken mlock detection.
authorWerner Koch <wk@gnupg.org>
Thu, 15 Dec 2016 07:50:40 +0000 (08:50 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 15 Dec 2016 07:50:40 +0000 (08:50 +0100)
* acinclude.m4 (GNUPG_CHECK_MLOCK): Fix typo EGAIN->EAGAIN.
--

GnuPG-bug-id: 2870
Fixes-commit: 618b8978f46f4011c11512fd5f30c15e01652e2e
Co-authored-by: Nicolas Porcel <nicolasporcel06@gmail.com>
Signed-off-by: Werner Koch <wk@gnupg.org>
acinclude.m4

index 90b3cb9..dcdadfd 100644 (file)
@@ -242,7 +242,7 @@ int main()
     pool += (pgsize - ((long int)pool % pgsize));
 
     err = mlock( pool, 4096 );
-    if( !err || errno == EPERM || errno == EGAIN)
+    if( !err || errno == EPERM || errno == EAGAIN)
         return 0; /* okay */
 
     return 1;  /* hmmm */