Merge branch 'master' of git://git.lttng.org/lttng-tools
[lttng-tools.git] / src / common / compat / poll.h
index 7af2ef050bdbf9339b0aa2243ea30ab2f2c18ddb..e3a13cedecfeda3768b2df2718ccf0e5af3b4d04 100644 (file)
@@ -185,10 +185,17 @@ enum {
        LPOLLRDBAND = POLLRDBAND,
        LPOLLWRNORM = POLLWRNORM,
        LPOLLWRBAND = POLLWRBAND,
+#if __linux__
        LPOLLMSG = POLLMSG,
+       LPOLLRDHUP = POLLRDHUP,
+#elif defined(__FreeBSD__)
+       LPOLLMSG = 0,
+       LPOLLRDHUP = 0,
+#else
+#error "Please add support for your OS."
+#endif /* __linux__ */
        LPOLLERR = POLLERR,
        LPOLLHUP = POLLHUP | POLLNVAL,
-       LPOLLRDHUP = POLLRDHUP,
        /* Close on exec feature does not exist for poll(2) */
        LTTNG_CLOEXEC = 0xdead,
 };
This page took 0.02449 seconds and 5 git commands to generate.