summaryrefslogtreecommitdiff
path: root/make/check_eventfd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'make/check_eventfd.cpp')
-rw-r--r--make/check_eventfd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/make/check_eventfd.cpp b/make/check_eventfd.cpp
new file mode 100644
index 000000000..9746ed733
--- /dev/null
+++ b/make/check_eventfd.cpp
@@ -0,0 +1,6 @@
+#include <sys/eventfd.h>
+
+int main() {
+ int fd = eventfd(0, 0);
+ return (fd < 0);
+}