diff options
author | Michael Forney <mforney@mforney.org> | 2019-06-30 02:12:19 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-06-30 10:12:19 +0100 |
commit | 4c21d696e9d46bebae0a936e2aec72326c5954ea (patch) | |
tree | a077a2c311681163895b4857a13f44ebe049b052 /sshfs.c | |
parent | 469c96b6d2fe90f1adbe4b79a71c2918c0ff3622 (diff) | |
download | sshfs-4c21d696e9d46bebae0a936e2aec72326c5954ea.tar sshfs-4c21d696e9d46bebae0a936e2aec72326c5954ea.tar.gz sshfs-4c21d696e9d46bebae0a936e2aec72326c5954ea.tar.bz2 sshfs-4c21d696e9d46bebae0a936e2aec72326c5954ea.zip |
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
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |