--- a/tools/rctest.c	2021-04-24 13:28:37.398660407 -0400
+++ b/tools/rctest.c	2021-04-24 13:28:19.748660418 -0400
@@ -39,6 +39,7 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
+#include <linux/sockios.h>
 
 #include "lib/bluetooth.h"
 #include "lib/hci.h"
