diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 369b40d20527a8949e01f3dcaa3d23096eee1400..599bb8aa8636a0cd948927a7c5f858b0ad9c8a39 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.514 2006/10/08 17:15:34 tgl Exp $
+ *	  $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.515 2006/10/08 17:45:50 momjian Exp $
  *
  * NOTES
  *	  this is the "main" module of the postgres backend and
@@ -27,6 +27,7 @@
 #include <sys/select.h>
 #endif
 #ifdef HAVE_SYS_RESOURCE_H
+#include <sys/time.h>
 #include <sys/resource.h>
 #endif
 #ifdef HAVE_GETOPT_H