diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-08-28 21:42:28 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-08-28 21:42:28 +0000 |
commit | 3b85fc3a529d6d1955fe91d908a286170c58ab34 (patch) | |
tree | fe01c6b8ecc9913114f4fe867f31da089678b521 /src | |
parent | a78a5308290e66ee33f0cf7a307176970f43f7ea (diff) | |
download | postgresql-3b85fc3a529d6d1955fe91d908a286170c58ab34.tar.gz postgresql-3b85fc3a529d6d1955fe91d908a286170c58ab34.zip |
Update pthread_self() on Win32 to return DWORD.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/pthread-win32.c | 4 | ||||
-rw-r--r-- | src/interfaces/libpq/pthread-win32.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/pthread-win32.c b/src/interfaces/libpq/pthread-win32.c index fd2481cd78c..11daa9f531b 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 5172cc3cafa..4109c898713 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); |