diff --git a/libc/sysdeps/linux/common/eventfd.c b/libc/sysdeps/linux/common/eventfd.c
index cc3f3f0..06a26ee 100644
--- a/libc/sysdeps/linux/common/eventfd.c
+++ b/libc/sysdeps/linux/common/eventfd.c
@@ -14,5 +14,9 @@
  * eventfd()
  */
 #ifdef __NR_eventfd
+#ifdef __NR_eventfd2
+#undef  __NR_eventfd
+#define __NR_eventfd __NR_eventfd2
+#endif
 _syscall2(int, eventfd, int, count, int, flags)
 #endif
