aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/compat/dirent_msvc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/dirent_msvc.h b/include/compat/dirent_msvc.h
index e8a0956..0f36803 100644
--- a/include/compat/dirent_msvc.h
+++ b/include/compat/dirent_msvc.h
@@ -47,6 +47,7 @@
47 47
48#include <stdarg.h> 48#include <stdarg.h>
49#include <sys/stat.h> 49#include <sys/stat.h>
50#include <stdint.h>
50 51
51/* Indicates that d_type field is available in dirent structure */ 52/* Indicates that d_type field is available in dirent structure */
52#define _DIRENT_HAVE_D_TYPE 53#define _DIRENT_HAVE_D_TYPE
@@ -215,6 +216,7 @@ _wopendir(const wchar_t *dirname)
215 216
216 } else { 217 } else {
217 /* Cannot allocate memory for search pattern */ 218 /* Cannot allocate memory for search pattern */
219 _set_errno(ENOMEM);
218 error = 1; 220 error = 1;
219 } 221 }
220 222