diff --git a/gtests/net/packetdrill/packet_socket_linux.c b/gtests/net/packetdrill/packet_socket_linux.c
index 2e098b45dbaed5a92fe90494f7127f3237921168..1c0d131dd0471d57679d6bc07aed8bcd4c681445 100644
--- a/gtests/net/packetdrill/packet_socket_linux.c
+++ b/gtests/net/packetdrill/packet_socket_linux.c
@@ -36,6 +36,7 @@
 
 #include <netpacket/packet.h>
 #include <linux/filter.h>
+#include <linux/sockios.h>
 
 #include "assert.h"
 #include "ethernet.h"