aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_dump.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-06-02 15:57:44 +0000
committerBruce Momjian <bruce@momjian.us>2000-06-02 15:57:44 +0000
commitcc2b5e5815aa596dbbdd288d0d178019f2d521aa (patch)
treeb82baecdde9295a977c530b10f8f15a91e012cda /src/bin/pg_dump/pg_dump.c
parentbf1c8f2b3b067c29f1abdf6fe866fb485ade96e9 (diff)
downloadpostgresql-cc2b5e5815aa596dbbdd288d0d178019f2d521aa.tar.gz
postgresql-cc2b5e5815aa596dbbdd288d0d178019f2d521aa.zip
Remove NT-specific file open defines by defining our own open macros for
"rb" and "wb".
Diffstat (limited to 'src/bin/pg_dump/pg_dump.c')
-rw-r--r--src/bin/pg_dump/pg_dump.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 12eed924525..407413160aa 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -22,7 +22,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.148 2000/05/28 20:34:52 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.149 2000/06/02 15:57:38 momjian Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
@@ -760,11 +760,7 @@ main(int argc, char **argv)
g_fout = stdout;
else
{
-#ifndef __CYGWIN32__
- g_fout = fopen(filename, "w");
-#else
- g_fout = fopen(filename, "wb");
-#endif
+ g_fout = fopen(filename, PG_BINARY_W);
if (g_fout == NULL)
{
fprintf(stderr,