diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/common.c | 13 | ||||
-rw-r--r-- | src/bin/psql/help.c | 3 | ||||
-rw-r--r-- | src/bin/psql/print.c | 13 |
3 files changed, 14 insertions, 15 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index c79d61cfbca..f67c9a64443 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.49 2002/10/23 19:23:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.50 2002/10/24 01:33:50 momjian Exp $ */ #include "postgres_fe.h" @@ -25,6 +25,17 @@ #include <sys/timeb.h> /* for _ftime() */ #endif +#ifndef WIN32 +#include <sys/ioctl.h> /* for ioctl() */ +#else +#define popen(x,y) _popen(x,y) +#define pclose(x) _pclose(x) +#endif + +#ifdef HAVE_TERMIOS_H +#include <termios.h> +#endif + #include "libpq-fe.h" #include "pqsignal.h" diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 7dfb594b435..6e5323c01ac 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.59 2002/10/23 19:23:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.60 2002/10/24 01:33:50 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -14,7 +14,6 @@ #include <errno.h> #ifndef WIN32 -#include <sys/ioctl.h> /* for ioctl() */ #ifdef HAVE_PWD_H #include <pwd.h> /* for getpwuid() */ #endif diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 565fe809d5c..2457740c309 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.33 2002/10/23 19:23:57 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.34 2002/10/24 01:33:50 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -11,23 +11,12 @@ #include <math.h> #include <signal.h> -#ifndef WIN32 -#include <unistd.h> /* for isatty() */ -#include <sys/ioctl.h> /* for ioctl() */ -#else -#define popen(x,y) _popen(x,y) -#define pclose(x) _pclose(x) -#endif #include "pqsignal.h" #include "libpq-fe.h" #include "settings.h" -#ifdef HAVE_TERMIOS_H -#include <termios.h> -#endif - #include "mbprint.h" /*************************/ |