diff --git a/dap_chain_wallet.c b/dap_chain_wallet.c
index 8c5c953660949ec5726e591d24ba84c58032fabc..0a8a8170e37b75f63c562b26256de27fd637937f 100755
--- a/dap_chain_wallet.c
+++ b/dap_chain_wallet.c
@@ -32,6 +32,11 @@
 #include <dirent.h>
 #include <errno.h>
 
+#ifdef DAP_OS_UNIX
+#include <sys/types.h>
+#include <sys/stat.h>
+#endif
+
 #ifdef WIN32
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x0600