diff --git a/src/interfaces/libpq/pthread-win32.c b/src/interfaces/libpq/pthread-win32.c
index 9901c17f1ae5b0a0354e270dab673d5fad260c23..7feebe741cdbaa081507e5afb75dff7926f4c308 100644
--- a/src/interfaces/libpq/pthread-win32.c
+++ b/src/interfaces/libpq/pthread-win32.c
@@ -5,11 +5,12 @@
 *
 * Copyright (c) 2004-2006, PostgreSQL Global Development Group
 * IDENTIFICATION
-*	$PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.11 2006/03/05 15:59:10 momjian Exp $
+*	$PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.12 2006/07/29 15:22:27 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
 
+#include "postgres_fe.h"
 
 #include <windows.h>
 #include "pthread-win32.h"
diff --git a/src/interfaces/libpq/win32.c b/src/interfaces/libpq/win32.c
index 2c5a58bef143103e11d6e11b3846f6f5d943970f..2867aba2d55675dfd75a25a90a6a0788d82c29bd 100644
--- a/src/interfaces/libpq/win32.c
+++ b/src/interfaces/libpq/win32.c
@@ -25,8 +25,8 @@
 #endif
 #define NOCRYPT
 
-#include <windows.h>
-#include <stdio.h>
+#include "postgres_fe.h"
+
 #include "win32.h"
 
 /* Declared here to avoid pulling in all includes, which causes name collissions */