X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fpoll.h;h=cc2aab8f8fa50abde12b95763a23d60d89efb264;hb=4eac90eb7d8428fc6c5a75d3f0e795844fb6c574;hp=e2a424abe132d564769d69de28aba40b50512324;hpb=b66cbf1731486ab4dc7e0b2e1c3fa05cc5360c19;p=lttng-tools.git diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index e2a424abe..cc2aab8f8 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -1,7 +1,7 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ @@ -235,7 +235,7 @@ enum { LPOLLRDBAND = POLLRDBAND, LPOLLWRNORM = POLLWRNORM, LPOLLWRBAND = POLLWRBAND, -#if __linux__ +#ifdef __linux__ LPOLLMSG = POLLMSG, LPOLLRDHUP = POLLRDHUP, #elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) @@ -354,7 +354,8 @@ extern int compat_poll_set_max_size(void); /* * No need to reset a pollfd structure for poll(2) */ -static inline void lttng_poll_reset(struct lttng_poll_event *events) +static inline void lttng_poll_reset( + struct lttng_poll_event *events __attribute__((unused))) {} /*