40 |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
41 |
#endif |
#endif |
42 |
|
|
43 |
|
#ifdef WINDOWSNT |
44 |
|
#include <fcntl.h> |
45 |
|
#endif |
46 |
|
|
47 |
#include "lisp.h" |
#include "lisp.h" |
48 |
#include "commands.h" |
#include "commands.h" |
49 |
#include "intervals.h" |
#include "intervals.h" |
959 |
uninterrupt_malloc (); |
uninterrupt_malloc (); |
960 |
#endif /* not SYSTEM_MALLOC */ |
#endif /* not SYSTEM_MALLOC */ |
961 |
|
|
962 |
#ifdef MSDOS |
#if defined (MSDOS) || defined (WINDOWSNT) |
963 |
/* We do all file input/output as binary files. When we need to translate |
/* We do all file input/output as binary files. When we need to translate |
964 |
newlines, we do that manually. */ |
newlines, we do that manually. */ |
965 |
_fmode = O_BINARY; |
_fmode = O_BINARY; |
966 |
|
#endif /* MSDOS || WINDOWSNT */ |
967 |
|
|
968 |
|
#ifdef MSDOS |
969 |
#if __DJGPP__ >= 2 |
#if __DJGPP__ >= 2 |
970 |
if (!isatty (fileno (stdin))) |
if (!isatty (fileno (stdin))) |
971 |
setmode (fileno (stdin), O_BINARY); |
setmode (fileno (stdin), O_BINARY); |