Unbreak 9.0 and 9.1 pg_upgrade.

These were broken by my recent backpatch of
the simple prompt fix. These older versions
used DEVTTY, so import the definition from
psql's command.c.
REL9_1_STABLE
Andrew Dunstan 13 years ago
parent a2d44f526e
commit 812451d1c7
  1. 11
      contrib/pg_upgrade/pg_upgrade.h

@ -54,6 +54,17 @@
#define EXE_EXT ".exe"
#endif
#if defined(WIN32) && !defined(__CYGWIN__)
/*
* XXX This does not work for all terminal environments or for output
* containing non-ASCII characters; see comments in simple_prompt().
*/
#define DEVTTY "con"
#else
#define DEVTTY "/dev/tty"
#endif
#define CLUSTER_NAME(cluster) ((cluster) == &old_cluster ? "old" : \
(cluster) == &new_cluster ? "new" : "none")

Loading…
Cancel
Save