From: Costin Lupu Date: Sat, 16 Nov 2019 22:06:48 +0000 (+0200) Subject: sys/poll.h: Declare poll() even if CONFIG_LWIP_SOCKET is defined X-Git-Tag: RELEASE-0.4~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5e08cc1a30ffbc731ad67eeccb7ca3b60ba1f9f3;p=unikraft%2Flibs%2Fnewlib.git sys/poll.h: Declare poll() even if CONFIG_LWIP_SOCKET is defined We need the poll() declaration even when CONFIG_LWIP_SOCKET is defined. We disable only the macros values if CONFIG_LWIP_SOCKET is defined because lwip comes with its own values. Signed-off-by: Costin Lupu Reviewed-by: Stefan Teodorescu --- diff --git a/include/sys/poll.h b/include/sys/poll.h index 0485658..0827738 100644 --- a/include/sys/poll.h +++ b/include/sys/poll.h @@ -80,7 +80,8 @@ struct pollfd { #define POLLHUP 0x010 /* file descriptor was "hung up" */ #define POLLNVAL 0x020 /* requested events "invalid" */ +#endif /* !CONFIG_LWIP_SOCKET */ + int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout); -#endif /* !CONFIG_LWIP_SOCKET */ #endif /* _POSIX_SYS_POLL_H_ */