summaryrefslogtreecommitdiff
path: root/src/tools/entab/entab.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-01-17 06:20:06 +0000
committerBruce Momjian <bruce@momjian.us>1999-01-17 06:20:06 +0000
commit7a6b562fdf60f1d1ebe9e2bc154d0ffd56dab2d1 (patch)
tree1e24049a7bedd03a13776dc131e808ae97eca197 /src/tools/entab/entab.c
parent298682d9e0b0ec55d5f72cec1f4d43c23f2a1ac6 (diff)
downloadpostgresql-7a6b562fdf60f1d1ebe9e2bc154d0ffd56dab2d1.tar.gz
Apply Win32 patch from Horak Daniel.
Diffstat (limited to 'src/tools/entab/entab.c')
-rw-r--r--src/tools/entab/entab.c4
1 files changed, 4 insertions, 0 deletions
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++;
}