--- a/gpt-utils.h
+++ b/gpt-utils.h
@@ -29,6 +29,7 @@
 
 #ifndef __GPT_UTILS_H__
 #define __GPT_UTILS_H__
+#include <cstdint>
 #include <vector>
 #include <string>
 #include <map>
--- a/qbootctl.cpp
+++ b/qbootctl.cpp
@@ -15,6 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <cstdint>
 #include <map>
 #include <list>
 #include <string>
