aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/eventfd.patch
blob: 930521eaa1fff00dbf24b375fc4e0d48fd1b859f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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