diff --git a/gtests/net/packetdrill/checksum.c b/gtests/net/packetdrill/checksum.c
index 14ee88e0647d1da47bff2f46d2221b9665c571b5..f7ae72d9004ec99f6a0fbdcb0243139cb9abba04 100644
--- a/gtests/net/packetdrill/checksum.c
+++ b/gtests/net/packetdrill/checksum.c
@@ -25,6 +25,7 @@
 #include "checksum.h"
 
 #include <assert.h>
+#include <stdint.h>
 
 /* Add bytes in buffer to a running checksum. Returns the new
  * intermediate checksum. Use ip_checksum_fold() to convert the
diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c
index ad128901682d6bfea219162924589f20794aa30e..0b08268f9d52209f65688ec16cdd81e248d5274c 100644
--- a/gtests/net/packetdrill/run_system_call.c
+++ b/gtests/net/packetdrill/run_system_call.c
@@ -32,6 +32,7 @@
 #include <netinet/in.h>
 #include <poll.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/ioctl.h>