diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index 0249ad324ccb02eb4b903641fc799b03a38f3b70..969f7da6cbe4873f8eeaf4600c2bc277af3a1304 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -11,7 +11,7 @@
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.7 2006/07/20 02:10:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.8 2006/07/20 02:15:17 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -63,7 +63,9 @@ static char *libdir = LIBDIR;
 static char *datadir = PGSHAREDIR;
 static char *host_platform = HOST_TUPLE;
 static char *makeprog = MAKEPROG;
+#ifndef WIN32					/* not used in WIN32 case */
 static char *shellprog = SHELLPROG;
+#endif
 
 /* currently we can use the same diff switches on all platforms */
 static const char *basic_diff_opts = "-w";