diff options
Diffstat (limited to 'src/bin/pg_dump')
| -rw-r--r-- | src/bin/pg_dump/Makefile.in | 6 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/bin/pg_dump/Makefile.in b/src/bin/pg_dump/Makefile.in index ca15402600..f387b729e0 100644 --- a/src/bin/pg_dump/Makefile.in +++ b/src/bin/pg_dump/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.10 1998/08/30 05:06:53 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.11 1999/01/17 06:19:05 momjian Exp $ # #------------------------------------------------------------------------- @@ -39,7 +39,7 @@ submake: $(MAKE) -C $(LIBPQDIR) libpq.a install: pg_dump - $(INSTALL) $(INSTL_EXE_OPTS) pg_dump $(BINDIR)/pg_dump + $(INSTALL) $(INSTL_EXE_OPTS) pg_dump$(X) $(BINDIR)/pg_dump$(X) $(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(BINDIR)/pg_dumpall $(INSTALL) $(INSTL_EXE_OPTS) pg_upgrade $(BINDIR)/pg_upgrade @@ -47,7 +47,7 @@ depend dep: $(CC) -MM $(CFLAGS) *.c >depend clean: - rm -f pg_dump $(OBJS) + rm -f pg_dump$(X) $(OBJS) ifeq (depend,$(wildcard depend)) include depend diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 0ffaaeb97d..4686c7cbee 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, |
