]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
sys/poll.h: Declare poll() even if CONFIG_LWIP_SOCKET is defined
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sat, 16 Nov 2019 22:06:48 +0000 (00:06 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 17 Nov 2019 11:27:43 +0000 (13:27 +0200)
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 <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
include/sys/poll.h

index 0485658a2fdae441fac2cf720ccf72327fe48b87..0827738b951e198fb6f249d849ae88d7301e3923 100644 (file)
@@ -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_ */