diff --git a/tools/amptest.c b/tools/amptest.c
index 6192f7e..bba0a9a 100644
--- a/tools/amptest.c
+++ b/tools/amptest.c
#include <alloca.h>
#include <stdlib.h>
#include <stdbool.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
diff --git a/tools/btattach.c b/tools/btattach.c
index 9458fd7..bdbbe16 100644
--- a/tools/btattach.c
+++ b/tools/btattach.c
#include <getopt.h>
#include <termios.h>
#include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
diff --git a/tools/btsnoop.c b/tools/btsnoop.c
index 14581f2..71191eb 100644
--- a/tools/btsnoop.c
+++ b/tools/btsnoop.c
#include <stdbool.h>
#include <string.h>
#include <getopt.h>
+#include <endian.h>
#include <arpa/inet.h>
#include <sys/stat.h>
diff --git a/tools/ciptool.c b/tools/ciptool.c
index 72338dc..3ff9fb1 100644
--- a/tools/ciptool.c
+++ b/tools/ciptool.c
#include <string.h>
#include <getopt.h>
#include <signal.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
diff --git a/tools/cltest.c b/tools/cltest.c
index 4ddb98a..0231805 100644
--- a/tools/cltest.c
+++ b/tools/cltest.c
#include <alloca.h>
#include <stdlib.h>
#include <stdbool.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
diff --git a/tools/hciattach.c b/tools/hciattach.c
index 1904ac5..d8ef7e7 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
#include <syslog.h>
#include <termios.h>
#include <time.h>
+#include <poll.h>
#include <sys/time.h>
-#include <sys/poll.h>
#include <sys/param.h>
#include <sys/ioctl.h>
diff --git a/tools/hciattach_qualcomm.c b/tools/hciattach_qualcomm.c
index eb72a0f..0e25905 100644
--- a/tools/hciattach_qualcomm.c
+++ b/tools/hciattach_qualcomm.c
#include <syslog.h>
#include <termios.h>
#include <time.h>
+#include <poll.h>
#include <sys/time.h>
-#include <sys/poll.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c
index 5c7f3a5..a7c1706 100644
--- a/tools/hciattach_tialt.c
+++ b/tools/hciattach_tialt.c
#include <syslog.h>
#include <termios.h>
#include <time.h>
+#include <poll.h>
#include <sys/time.h>
-#include <sys/poll.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
diff --git a/tools/hcidump.c b/tools/hcidump.c
index 37a9f00..8839eb0 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ioctl.h>
diff --git a/tools/l2ping.c b/tools/l2ping.c
index 29fb3d0..3dd437e 100644
--- a/tools/l2ping.c
+++ b/tools/l2ping.c
#include <getopt.h>
#include <signal.h>
#include <sys/time.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
diff --git a/tools/l2test.c b/tools/l2test.c
index 67ca70a..71ad109 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
#include <syslog.h>
#include <signal.h>
#include <sys/time.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
diff --git a/tools/rfcomm.c b/tools/rfcomm.c
index b5bea38..659bbec 100644
--- a/tools/rfcomm.c
+++ b/tools/rfcomm.c
#include <getopt.h>
#include <signal.h>
#include <termios.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>