summaryrefslogtreecommitdiff
path: root/cmake/eventfd_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/eventfd_test.cpp')
-rw-r--r--cmake/eventfd_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/eventfd_test.cpp b/cmake/eventfd_test.cpp
new file mode 100644
index 0000000..8abd9c3
--- /dev/null
+++ b/cmake/eventfd_test.cpp
@@ -0,0 +1,8 @@
+#include <sys/eventfd.h>
+
+int main()
+{
+ int i = eventfd(0, EFD_NONBLOCK);
+ return i > 0 ? 1 : 0;
+}
+