diff --git a/src/drivers/uavcan/sensors/gnss.cpp b/src/drivers/uavcan/sensors/gnss.cpp
index a118a621799aea24e184f25a0a373a12d65ffbb8..181399fd71c883862dfd82a03a617e92216a93e4 100644
--- a/src/drivers/uavcan/sensors/gnss.cpp
+++ b/src/drivers/uavcan/sensors/gnss.cpp
@@ -40,6 +40,9 @@
  */
 
 #include "gnss.hpp"
+
+#include <cstdint>
+
 #include <drivers/drv_hrt.h>
 #include <systemlib/err.h>
 #include <mathlib/mathlib.h>