afalg: Use eventfd2 syscall instead of eventfd
[openssl.git] / engines / afalg / e_afalg.c
index 5ce9047105bcc27b70d9c3f2bba47bfc95a616b1..4f335809d5712390fbe8f0ec74bc86789edb6ab0 100644 (file)
@@ -107,7 +107,7 @@ static ossl_inline int io_setup(unsigned n, aio_context_t *ctx)
 
 static ossl_inline int eventfd(int n)
 {
-    return syscall(__NR_eventfd, n);
+    return syscall(__NR_eventfd2, n, 0);
 }
 
 static ossl_inline int io_destroy(aio_context_t ctx)