diff --git a/lib/Endian.h b/lib/Endian.h
index 36554b1f1..b6792468f 100644
--- a/lib/Endian.h
+++ b/lib/Endian.h
@@ -37,6 +37,7 @@
  */
 
 #include <stdlib.h>
+#include <stdint.h>
 
 #define bswap_64(x)                            \
   ((((x) & 0xff00000000000000ull) >> 56)       \