From 7a6b562fdf60f1d1ebe9e2bc154d0ffd56dab2d1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 17 Jan 1999 06:20:06 +0000 Subject: Apply Win32 patch from Horak Daniel. --- src/tools/entab/entab.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tools') diff --git a/src/tools/entab/entab.c b/src/tools/entab/entab.c index 5aa94e6abf..b0019b30b2 100644 --- a/src/tools/entab/entab.c +++ b/src/tools/entab/entab.c @@ -94,7 +94,11 @@ char **argv; in_file = stdin; else { +#ifndef __CYGWIN32__ if ((in_file = fopen(*argv, "r")) == NULL) +#else + if ((in_file = fopen(*argv, "rb")) == NULL) +#endif halt("PERROR: Can not open file %s\n", argv[0]); argv++; } -- cgit v1.2.1