@@ -31,8 +31,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
-#include <sys/signal.h>
-#include <sys/errno.h>
+#include <signal.h>
+#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -45,7 +45,7 @@
#include <net/if.h>
#include <netinet/in.h>
#include <ifaddrs.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <rpc/rpc.h>
#ifdef PORTMAP
#include <rpc/pmap_prot.h>
@@ -37,7 +37,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <stdint.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/time.h>
@@ -29,7 +29,7 @@
#include <pthread.h>
#include <reentrant.h>
#include <sys/types.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -48,7 +48,7 @@
#include <reentrant.h>
#include <sys/types.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/syslog.h>
#include <sys/un.h>
#include <sys/uio.h>
@@ -56,7 +56,7 @@
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include "dump.h"
@@ -36,7 +36,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/socket.h>
#include <net/if.h>
@@ -40,7 +40,7 @@
#include <reentrant.h>
#include <sys/types.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
@@ -40,7 +40,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/param.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/un.h>
#include <sys/time.h>
#include <sys/uio.h>
poll.h, signal.h, errno.h and fcntl.h are all defined in POSIX and their location are not under sys/ This fixes various compile warning when building with musl libc like: In file included from clnt_dg.c:40:0: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] In file included from clnt_generic.c:32:0: /usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp] In file included from auth_time.c:34:0: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] In file included from auth_time.c:35:0: /usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> --- src/auth_time.c | 4 ++-- src/clnt_bcast.c | 2 +- src/clnt_dg.c | 2 +- src/clnt_generic.c | 2 +- src/clnt_vc.c | 2 +- src/key_call.c | 2 +- src/pmap_rmt.c | 2 +- src/svc.c | 2 +- src/svc_vc.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-)