diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 4cf6d75..13993ea 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -30,6 +30,8 @@
 #define _LIBSSH_PRIV_H
 
 #include "config.h"
+#include <stdint.h>
+#include <string.h>
 
 #if !defined(HAVE_STRTOULL)
 # if defined(HAVE___STRTOULL)
