diff --git a/client/tarantar/sha1.h b/client/tarantar/sha1.h
index 00638c3972c1e9d50d11ad398131d9d4292686ba..d44d22b96aedb906498f58690e200d550c9598ca 100644
--- a/client/tarantar/sha1.h
+++ b/client/tarantar/sha1.h
@@ -1,6 +1,8 @@
 #ifndef TS_SHA1_H_INCLUDED
 #define TS_SHA1_H_INCLUDED
 
+#include <stdint.h>
+
 /* ================ sha1.h ================ */
 /*
 SHA-1 in C
diff --git a/include/cpu_feature.h b/include/cpu_feature.h
index 8f2c6efb511e0d6c70f08dcce56978fd2b77335b..4c46f86ec383e356f2dd296d82fc7058c2e0f42d 100644
--- a/include/cpu_feature.h
+++ b/include/cpu_feature.h
@@ -30,6 +30,7 @@
  */
 #include <sys/types.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 /* Check whether CPU supports SSE 4.2 (needed to compute CRC32 in hardware).
  *