diff --git a/src/interfaces/libpq/pthread-win32.c b/src/interfaces/libpq/pthread-win32.c
index fd2481cd78cc0420b084dbc60abaa8df57950ca9..11daa9f531bbf71ae640dcad9980ef996abf0f44 100644
--- a/src/interfaces/libpq/pthread-win32.c
+++ b/src/interfaces/libpq/pthread-win32.c
@@ -5,7 +5,7 @@
 *
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 * IDENTIFICATION
-*	$PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.9 2005/08/28 18:49:01 momjian Exp $
+*	$PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.10 2005/08/28 21:42:28 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -14,7 +14,7 @@
 #include <windows.h>
 #include "pthread-win32.h"
 
-HANDLE
+DWORD
 pthread_self()
 {
 	return GetCurrentThreadId();
diff --git a/src/interfaces/libpq/pthread-win32.h b/src/interfaces/libpq/pthread-win32.h
index 5172cc3cafaf4f6b65e0c5d07dd89c58d67dc9a4..4109c8987131417da15c93e964392f6ca5aef7e3 100644
--- a/src/interfaces/libpq/pthread-win32.h
+++ b/src/interfaces/libpq/pthread-win32.h
@@ -5,7 +5,7 @@ typedef ULONG pthread_key_t;
 typedef HANDLE pthread_mutex_t;
 typedef int pthread_once_t;
 
-HANDLE pthread_self();
+DWORD pthread_self();
 
 void pthread_setspecific(pthread_key_t, void*);
 void* pthread_getspecific(pthread_key_t);