aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-30 02:12:19 -0700
committerNikolaus Rath <Nikolaus@rath.org>2019-06-30 10:12:19 +0100
commit4c21d696e9d46bebae0a936e2aec72326c5954ea (patch)
treea077a2c311681163895b4857a13f44ebe049b052 /sshfs.c
parent469c96b6d2fe90f1adbe4b79a71c2918c0ff3622 (diff)
downloadsshfs-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index 9175a2c..a2d072a 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -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>