newgrf_config.c
branch0.5
changeset 5444 3209bb62403e
parent 5416 87d5e006851b
child 5459 74356913b47d
--- a/newgrf_config.c	Sat Feb 24 01:14:54 2007 +0000
+++ b/newgrf_config.c	Sat Feb 24 01:21:31 2007 +0000
@@ -15,14 +15,10 @@
 
 #include "fileio.h"
 #include "fios.h"
-#include <sys/types.h>
 #include <sys/stat.h>
 
 #ifdef WIN32
 # include <io.h>
-#else
-# include <unistd.h>
-# include <dirent.h>
 #endif /* WIN32 */
 
 
@@ -266,7 +262,7 @@
 	DIR *dir;
 	GRFConfig *c;
 
-	if ((dir = opendir(path)) == NULL) return 0;
+	if ((dir = ttd_opendir(path)) == NULL) return 0;
 
 	while ((dirent = readdir(dir)) != NULL) {
 		const char *d_name = FS2OTTD(dirent->d_name);