summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/check_epoll.cpp6
-rw-r--r--make/check_eventfd.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/make/check_epoll.cpp b/make/check_epoll.cpp
new file mode 100644
index 000000000..626d4475c
--- /dev/null
+++ b/make/check_epoll.cpp
@@ -0,0 +1,6 @@
+#include <sys/epoll.h>
+
+int main() {
+ int fd = epoll_create(1);
+ return (fd < 0);
+}
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);
+}