aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-09 14:49:02 +0200
committerEli Zaretskii2013-11-09 14:49:02 +0200
commit0b9de7cd600054dfbe6252b73995302200b8597e (patch)
tree3561fd8af235fb8b5c7a6291adceb427024bfae9 /nt
parentf5441ba43c16303b129192504a0731a0ee0df47e (diff)
downloademacs-0b9de7cd600054dfbe6252b73995302200b8597e.tar.gz
emacs-0b9de7cd600054dfbe6252b73995302200b8597e.zip
Dirent functions and directory-files are converted and work.
Diffstat (limited to 'nt')
-rw-r--r--nt/inc/dirent.h2
-rw-r--r--nt/inc/ms-w32.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/nt/inc/dirent.h b/nt/inc/dirent.h
index 328635c4853..88f35bf16a9 100644
--- a/nt/inc/dirent.h
+++ b/nt/inc/dirent.h
@@ -40,7 +40,7 @@ struct dirent /* data from readdir() */
40 __int64 d_time_write; 40 __int64 d_time_write;
41 _fsize_t d_size; 41 _fsize_t d_size;
42#endif 42#endif
43 char d_name[MAXNAMLEN+1]; /* name of file */ 43 char d_name[MAXNAMLEN * 4 + 1]; /* name of file */
44 }; 44 };
45 45
46typedef struct 46typedef struct
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 6ecafe46d7a..3691b303b80 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -224,6 +224,14 @@ extern struct tm * sys_localtime (const time_t *);
224#define strerror sys_strerror 224#define strerror sys_strerror
225#undef unlink 225#undef unlink
226#define unlink sys_unlink 226#define unlink sys_unlink
227#undef opendir
228#define opendir sys_opendir
229#undef closedir
230#define closedir sys_closedir
231#undef readdir
232#define readdir sys_readdir
233#undef seekdir
234#define seekdir sys_seekdir
227/* This prototype is needed because some files include config.h 235/* This prototype is needed because some files include config.h
228 _after_ the standard headers, so sys_unlink gets no prototype from 236 _after_ the standard headers, so sys_unlink gets no prototype from
229 stdio.h or io.h. */ 237 stdio.h or io.h. */