--- ./ntreg.h.orig
+++ ./ntreg.h
@@ -25,6 +25,8 @@
 #ifndef _INCLUDE_NTREG_H
 #define _INCLUDE_NTREG_H 1
 
+#include <stdint.h>
+
 #define SZ_MAX     4096       /* Max unicode strlen before we truncate */
 
 #define KEY_ROOT   0x2c         /* Type ID of ROOT key node */