afalg: Use eventfd2 syscall instead of eventfd
[openssl.git] / engines / e_afalg.c
index 7e682554ed953a627d3175e44e7f118461bc70d3..e6fa5472d37ccb0e80eb5524d2d93386e7524ae2 100644 (file)
@@ -105,7 +105,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)