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

Rob Landley rob at landley.net
Sun Jul 5 02:18:43 PDT 2020


On 7/5/20 1:19 AM, Ariadne Conill wrote:
> 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>

toys.h already includes poll so the right thing do here is remove the line.

Rob


More information about the Toybox mailing list