open-iscsi / open-isns

iSNS server and client for Linux
GNU Lesser General Public License v2.1
26 stars 22 forks source link

socket.c: include poll.h instead of sys/poll.h for POSIX compatibility #25

Closed maxice8 closed 4 years ago

maxice8 commented 4 years ago

https://pubs.opengroup.org/onlinepubs/009695399/basedefs/poll.h.html

This fixes a build failure on musl libc, which has sys/poll.h that redirects to poll.h. with a #warning

$ cat /usr/include/sys/poll.h
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
#include <poll.h>
gonzoleeman commented 4 years ago

Looks good to me. Thank you!