diff options
-rw-r--r-- | system/include/libc/sys/dirent.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/include/libc/sys/dirent.h b/system/include/libc/sys/dirent.h index 5dc42ebe..727dbf94 100644 --- a/system/include/libc/sys/dirent.h +++ b/system/include/libc/sys/dirent.h @@ -8,8 +8,6 @@ extern "C" { #endif -struct DIR; - /* XXX Emscripten */ struct dirent { ino_t d_ino; @@ -19,10 +17,12 @@ struct dirent { char d_type; }; -DIR *opendir(const char *); -void seekdir(DIR *, long); -long telldir(DIR *); -struct dirent *readdir(DIR *); +#define DIR struct dirent + +DIR *opendir(const char *); +void seekdir(DIR *, long); +long telldir(DIR *); +DIR *readdir(DIR *); #ifdef __cplusplus } |