Contiki-NG: Fix compilation error "unknown type name 'fd_set'"

This commit is contained in:
kkrentz authored and Jon Shallow committed 2024-05-02 12:21:12 +01:00
1 parent 9f1418e87d
commit 466463304b
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -625,7 +625,7 @@ void coap_mcast_per_resource(coap_context_t *context);
*/
int coap_io_process(coap_context_t *ctx, uint32_t timeout_ms);
#if !defined(RIOT_VERSION)
#if !defined(RIOT_VERSION) && !defined(WITH_CONTIKI)
/**
* The main message processing loop with additional fds for internal select.
*
@@ -656,7 +656,7 @@ int coap_io_process(coap_context_t *ctx, uint32_t timeout_ms);
int coap_io_process_with_fds(coap_context_t *ctx, uint32_t timeout_ms,
int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds);
#endif /* ! RIOT_VERSION */
#endif /* ! RIOT_VERSION && ! WITH_CONTIKI */
/**
* Check to see if there is any i/o pending for the @p context.
+2 -2
View File
@@ -178,13 +178,13 @@ struct coap_context_t {
int eptimerfd; /**< Internal FD for timeout */
coap_tick_t next_timeout; /**< When the next timeout is to occur */
#else /* ! COAP_EPOLL_SUPPORT */
#if !defined(RIOT_VERSION)
#if !defined(RIOT_VERSION) && !defined(WITH_CONTIKI)
fd_set readfds, writefds, exceptfds; /**< Used for select call
in coap_io_process_with_fds() */
coap_socket_t *sockets[64]; /**< Track different socket information
in coap_io_process_with_fds */
unsigned int num_sockets; /**< Number of sockets being tracked */
#endif /* ! RIOT_VERSION */
#endif /* ! RIOT_VERSION && ! WITH_CONTIKI */
#endif /* ! COAP_EPOLL_SUPPORT */
#if COAP_SERVER_SUPPORT
uint8_t observe_pending; /**< Observe response pending */