Skip to content

Commit

Permalink
Include poll.h instead of sys/poll.h (libfuse#178)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
michaelforney authored and Nikratio committed Jun 30, 2019
1 parent 469c96b commit 4c21d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4c21d69

Please sign in to comment.