[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH 6/6] poll.h: Include lwip/sockets.h if lwIP is available



for POLLIN and friends.

Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
---
 include/sys/poll.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/sys/poll.h b/include/sys/poll.h
index 556e038..0485658 100644
--- a/include/sys/poll.h
+++ b/include/sys/poll.h
@@ -34,10 +34,11 @@
 #ifndef _POSIX_SYS_POLL_H_
 #define _POSIX_SYS_POLL_H_
 
-/* LWIP's socket interface provides poll primitives */
 #include <uk/config.h>
-#if !CONFIG_LWIP_SOCKET
-
+/* LWIP's socket interface provides poll primitives */
+#if CONFIG_LWIP_SOCKET
+#include <lwip/sockets.h>
+#else
 /*
  * This file is intended to be compatible with the traditional poll.h.
  */
-- 
2.21.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.