Skip to content

Commit 3b85fc3

Browse files
committed
Update pthread_self() on Win32 to return DWORD.
1 parent a78a530 commit 3b85fc3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/interfaces/libpq/pthread-win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
77
* IDENTIFICATION
8-
* $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.9 2005/08/28 18:49:01 momjian Exp $
8+
* $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.10 2005/08/28 21:42:28 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -14,7 +14,7 @@
1414
#include <windows.h>
1515
#include "pthread-win32.h"
1616

17-
HANDLE
17+
DWORD
1818
pthread_self()
1919
{
2020
return GetCurrentThreadId();

src/interfaces/libpq/pthread-win32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ typedef ULONG pthread_key_t;
55
typedef HANDLE pthread_mutex_t;
66
typedef int pthread_once_t;
77

8-
HANDLE pthread_self();
8+
DWORD pthread_self();
99

1010
void pthread_setspecific(pthread_key_t, void*);
1111
void* pthread_getspecific(pthread_key_t);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy