diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dosfns.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dosfns.c b/src/dosfns.c index a88f992e56b..d66912f2363 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -35,6 +35,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 35 | #include "dosfns.h" | 35 | #include "dosfns.h" |
| 36 | #include "msdos.h" | 36 | #include "msdos.h" |
| 37 | #include <go32.h> | 37 | #include <go32.h> |
| 38 | #include <dirent.h> | ||
| 38 | 39 | ||
| 39 | DEFUN ("int86", Fint86, Sint86, 2, 2, 0, | 40 | DEFUN ("int86", Fint86, Sint86, 2, 2, 0, |
| 40 | "Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\ | 41 | "Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\ |
| @@ -304,6 +305,17 @@ init_dosfns () | |||
| 304 | } | 305 | } |
| 305 | else | 306 | else |
| 306 | dos_codepage = regs.x.bx & 0xffff; | 307 | dos_codepage = regs.x.bx & 0xffff; |
| 308 | |||
| 309 | #if __DJGPP__ >= 2 | ||
| 310 | |||
| 311 | /* Without this, we never see hidden files. */ | ||
| 312 | __opendir_flags |= __OPENDIR_FIND_HIDDEN; | ||
| 313 | |||
| 314 | /* Under LFN, preserve the case of files as recorded in the directory. */ | ||
| 315 | if (!NILP (Fmsdos_long_file_names ())) | ||
| 316 | __opendir_flags |= __OPENDIR_PRESERVE_CASE; | ||
| 317 | |||
| 318 | #endif | ||
| 307 | } | 319 | } |
| 308 | 320 | ||
| 309 | /* | 321 | /* |