diff --git a/src/port/pgsleep.c b/src/port/pgsleep.c
index 52ea860e75251c49648147e14cb3bb687ff3f303..41f989dbbea3bfca9f579b10a1fcf73c7ae80926 100644
--- a/src/port/pgsleep.c
+++ b/src/port/pgsleep.c
@@ -6,12 +6,13 @@
  *
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.1 2004/02/10 03:42:45 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.2 2004/02/10 04:23:03 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
+#include <unistd.h>
 #include <sys/time.h>