(main) [MSDOS]: Open all files as binary.
This commit is contained in:
parent
26528bbc92
commit
c6880c90ff
2 changed files with 16 additions and 0 deletions
|
@ -18,6 +18,9 @@
|
|||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef MSDOS
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <../src/config.h>
|
||||
|
||||
|
@ -45,6 +48,11 @@ main (argc, argv)
|
|||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
#ifdef MSDOS
|
||||
_fmode = O_BINARY; /* all of files are treated as binary files */
|
||||
(stdout)->_flag &= ~_IOTEXT;
|
||||
(stdin)->_flag &= ~_IOTEXT;
|
||||
#endif
|
||||
ltoday = time(0);
|
||||
today = ctime(<oday);
|
||||
|
||||
|
|
|
@ -28,6 +28,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
* Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 9.8
|
||||
*/
|
||||
|
||||
#ifdef MSDOS
|
||||
#include <fcntl.h>
|
||||
#endif /* MSDOS */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <../src/config.h>
|
||||
#endif
|
||||
|
@ -546,6 +550,10 @@ main (argc, argv)
|
|||
extern char *massage_name ();
|
||||
#endif
|
||||
|
||||
#ifdef MSDOS
|
||||
_fmode = O_BINARY; /* all of files are treated as binary files */
|
||||
#endif /* MSDOS */
|
||||
|
||||
progname = argv[0];
|
||||
|
||||
#ifndef CTAGS
|
||||
|
|
Loading…
Add table
Reference in a new issue