[Toybox] [PATCH] telnet: use poll.h instead of sys/poll.h

Ariadne Conill ariadne at dereferenced.org
Sat Jul 4 23:19:10 PDT 2020


poll.h is the correct header as defined by POSIX.
musl libc warns about using sys/poll.h.

Signed-off-by: Ariadne Conill <ariadne at dereferenced.org>
---
 toys/pending/telnet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/pending/telnet.c b/toys/pending/telnet.c
index b8c9c140..eb03bd7b 100644
--- a/toys/pending/telnet.c
+++ b/toys/pending/telnet.c
@@ -21,7 +21,7 @@ config TELNET
 #include "toys.h"
 #include <arpa/telnet.h>
 #include <netinet/in.h>
-#include  <sys/poll.h>
+#include <poll.h>
 
 GLOBALS(
   int port;
-- 
2.27.0




More information about the Toybox mailing list