Include poll.h instead of sys/poll.h (#178)

The standard header for the poll(3) interface is poll.h[0]. This prevents
a warning when building with musl libc:

    In file included from sshfs.c:44:
    /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
     #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      ^~~~~~~

[0] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html
This commit is contained in:
Michael Forney 2019-06-30 02:12:19 -07:00 committed by Nikolaus Rath
parent 469c96b6d2
commit 4c21d696e9
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
#include <sys/socket.h>
#include <sys/utsname.h>
#include <sys/mman.h>
#include <sys/poll.h>
#include <poll.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <glib.h>