Multiple fix for FreeBSD compat layer
[lttng-tools.git] / src / common / compat / poll.h
index 1580a4fb211a24def1146d7ec5c721431c34e3b4..ded35410d48dd3d7232608746e46f6d334dd7733 100644 (file)
@@ -179,10 +179,15 @@ enum {
        LPOLLRDBAND = POLLRDBAND,
        LPOLLWRNORM = POLLWRNORM,
        LPOLLWRBAND = POLLWRBAND,
+#if __linux__
        LPOLLMSG = POLLMSG,
+       LPOLLRDHUP = POLLRDHUP,
+#elif __FreeBSD__
+       LPOLLMSG = 0,
+       LPOLLRDHUP = 0,
+#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.023578 seconds and 4 git commands to generate.