diff --git a/src/backend/utils/adt/tsquery_cleanup.c b/src/backend/utils/adt/tsquery_cleanup.c
index bc123378e09aeaa22f6b7724d10a0f7345f4b6c1..62de4ee6ec74c66ccdc9c41f3e6bbe475d07becd 100644
--- a/src/backend/utils/adt/tsquery_cleanup.c
+++ b/src/backend/utils/adt/tsquery_cleanup.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_cleanup.c,v 1.4 2007/09/07 16:03:40 teodor Exp $
+ *	  $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_cleanup.c,v 1.5 2007/09/20 23:27:11 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -194,6 +194,9 @@ clean_NOT(QueryItem * ptr, int *len)
 #ifdef V_UNKNOWN				/* exists in Windows headers */
 #undef V_UNKNOWN
 #endif
+#ifdef V_FALSE					/* exists in Solaris headers */
+#undef V_FALSE
+#endif
 
 /*
  * output values for result output parameter of clean_fakeval_intree