--- a/tools/l2test.c 2021-04-24 13:27:45.748660438 -0400
+++ b/tools/l2test.c	2021-04-24 13:28:03.538660427 -0400
@@ -41,6 +41,8 @@
 #include <poll.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
+#include <linux/sockios.h>
+
 
 #include "lib/bluetooth.h"
 #include "lib/hci.h"
