From 11c53f3d7f747d14fd69ce98c63d629bc821ef68 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 26 Oct 2025 11:27:05 -0700 Subject: Remove unnecesary includes from pollq.h --- src/platform/posix/posix_pollq.h | 3 --- src/platform/posix/posix_pollq_poll.h | 8 +++++++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/platform/posix/posix_pollq.h b/src/platform/posix/posix_pollq.h index a1b5f605..480347fa 100644 --- a/src/platform/posix/posix_pollq.h +++ b/src/platform/posix/posix_pollq.h @@ -19,9 +19,6 @@ // that is not very performant on many systems. So we emulate this using // one of several possible different backends. -// #include "core/nng_impl.h" -#include "../../core/defs.h" - #if defined(NNG_POLLQ_KQUEUE) #include "posix_pollq_kqueue.h" #elif defined(NNG_POLLQ_PORTS) diff --git a/src/platform/posix/posix_pollq_poll.h b/src/platform/posix/posix_pollq_poll.h index b96d2451..b100c3af 100644 --- a/src/platform/posix/posix_pollq_poll.h +++ b/src/platform/posix/posix_pollq_poll.h @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -11,8 +11,14 @@ #ifndef PLATFORM_POSIX_POLLQ_POLL_H #define PLATFORM_POSIX_POLLQ_POLL_H +typedef struct nni_posix_pfd nni_posix_pfd; +typedef void (*nni_posix_pfd_cb)(void *, unsigned); + #include +#include "../../core/list.h" +#include "../../core/platform.h" + // nni_posix_pfd is the handle used by the poller. It's internals are private // to the poller. struct nni_posix_pfd { -- cgit v1.2.3-70-g09d2