Index: native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h |
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h |
index 86b65e45443b27cb8fb45f21de94ebe47a5df9d5..e0c5a28ee0d3567df5a071829fbf8e9ca07d4f61 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h |
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h |
@@ -5,6 +5,7 @@ |
#ifndef LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ |
#define LIBRARIES_NACL_IO_KERNEL_WRAP_REAL_H_ |
+#include "nacl_io/osdirent.h" |
#include "nacl_io/osstat.h" |
#include "nacl_io/ostypes.h" |
#include "sdk_util/macros.h" |
@@ -15,7 +16,7 @@ EXTERN_C_BEGIN |
int _real_close(int fd); |
void _real_exit(int status); |
int _real_fstat(int fd, struct stat* buf); |
-int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t* nread); |
+int _real_getdents(int fd, struct dirent* buf, size_t count, size_t* nread); |
int _real_isatty(int fd, int* result); |
int _real_lseek(int fd, int64_t offset, int whence, int64_t* new_offset); |
int _real_mkdir(const char* pathname, mode_t mode); |