aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-07 15:44:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-07 15:44:45 -0700
commite1a2cbc351536a693ff33aea0a10b5759b4680e8 (patch)
tree0e5fc1ce306e709cf6c708622c71eaf50fe84f0a /system
parent01fb40715dfb3bf5c87e89924d0c307c62cad4e6 (diff)
fix dirent.h
Diffstat (limited to 'system')
-rw-r--r--system/include/libc/sys/dirent.h12
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
}