summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-23 18:49:06 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-23 18:49:06 +0000
commit58eae4fc8af1602396da456aab109eca8aaed7d6 (patch)
treeeaef18352cc4329dac0b662e115b987ea978237f /make
parent85a787b92b6de419fab2cd4fe118c0c7d47066d6 (diff)
Add test-compile checks for epoll and eventfd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11253 e03df62e-2008-0410-955e-edbf42e46eb7
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);
+}