summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-02-20 09:46:10 +0000
committerDarkvater <darkvater@openttd.org>2007-02-20 09:46:10 +0000
commit6d2548122124e93cf1e5493dade4d79c874809a0 (patch)
tree4a6e386bcc81a0d19f80cbdff746167d94b1498f /src/fios.h
parent41d526415c0d959daa2b804ffd40b667eb011394 (diff)
downloadopenttd-6d2548122124e93cf1e5493dade4d79c874809a0.tar.xz
(svn r8823) -Fix (r8821): wrapping opendir to ottd-specific function failed on non-windows because this wrapper was only active for win32 (thx Rubidium)
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fios.h b/src/fios.h
index 0663b781b..591297076 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -80,6 +80,10 @@ struct DIR {
DIR *opendir(const wchar_t *path);
struct dirent *readdir(DIR *d);
int closedir(DIR *d);
+#else
+/* Use system-supplied opendir/readdir/closedir functions */
+# include <sys/types.h>
+# include <dirent.h>
#endif /* defined(WIN32) */
/**