diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 9b89b5c5e39ea00171fd091233d695094df2e013..7b00657d6c2f48fe896776013d34156037ba64f4 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.20 2001/06/02 18:25:18 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.21 2001/08/01 18:44:54 momjian Exp $
  */
 #include "postgres_fe.h"
 #include "print.h"
@@ -29,6 +29,9 @@
 #define DEFAULT_PAGER "less"
 #endif
 
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
 
 
 /*************************/