diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-11 06:50:54 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-11 06:50:54 -0700 |
| commit | 2f24a1b1c93b8c45dce391ed0439131f9ad8cf28 (patch) | |
| tree | 51065064cec7f35b900291fb2a101b7dbe3b6826 /src/core/pollable.c | |
| parent | b98e03b26bfc593326bd7c1d56fd69626f6a93cb (diff) | |
| download | nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.tar.gz nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.tar.bz2 nng-2f24a1b1c93b8c45dce391ed0439131f9ad8cf28.zip | |
fix includes for core
Diffstat (limited to 'src/core/pollable.c')
| -rw-r--r-- | src/core/pollable.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/pollable.c b/src/core/pollable.c index d07c9b10..25e4cbb5 100644 --- a/src/core/pollable.c +++ b/src/core/pollable.c @@ -8,11 +8,13 @@ // found online at https://opensource.org/licenses/MIT. // -#include "core/nng_impl.h" +#include "pollable.h" +#include "defs.h" +#include "platform.h" // We pack the wfd and rfd into a uint64_t so that we can update the pair // atomically and use nni_atomic_cas64, to be lock free. -#define WFD(fds) ((int) ((fds) &0xffffffffu)) +#define WFD(fds) ((int) ((fds) & 0xffffffffu)) #define RFD(fds) ((int) (((fds) >> 32u) & 0xffffffffu)) #define FD_JOIN(wfd, rfd) ((uint64_t) (wfd) + ((uint64_t) (rfd) << 32u)) |
