diff --git a/src/netcode/net_command.c b/src/netcode/net_command.c
index 887b7fa2a4e2d3926f99dcf0867e4de363f8f26b..efc8bd0efc4e9046989d604feedba5cbcc66897f 100644
--- a/src/netcode/net_command.c
+++ b/src/netcode/net_command.c
@@ -16,6 +16,7 @@
 #include "server_connection.h"
 #include "d_clisrv.h"
 #include "i_net.h"
+#include "../byteptr.h"
 #include "../g_game.h"
 #include "../z_zone.h"
 #include "../doomtype.h"