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>
#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_ */