diff options
Diffstat (limited to 'src/bin/pg_dump/pg_dump.c')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 0ffaaeb97db..4686c7cbee7 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.97 1998/12/13 23:41:32 thomas Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.98 1999/01/17 06:19:05 momjian Exp $ * * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * @@ -76,6 +76,10 @@ #include <termios.h> #endif +#ifdef __CYGWIN32__ +#include <getopt.h> +#endif + #include "pg_dump.h" static void dumpSequence(FILE *fout, TableInfo tbinfo); @@ -629,7 +633,11 @@ main(int argc, char **argv) g_fout = stdout; else { +#ifndef __CYGWIN32__ g_fout = fopen(filename, "w"); +#else + g_fout = fopen(filename, "wb"); +#endif if (g_fout == NULL) { fprintf(stderr, |