wine_gettid patch

Rob Crittenden <[email protected]> Wed, 25 Apr 2007 13:27:24 -0400
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
The CVS source currently builds but fails at runtime with:

"BUILTIN32_dlopen failed to load .so lib for builtin x11drv.dll: 
/path/to/wine/lib/libx11drv.so: undefined symbol: wine_gettid"

Here is a patch which fixes it:

Index: dlls/x11drv/glx.c
===================================================================
RCS file: /cvsroot/winex/dlls/x11drv/glx.c,v
retrieving revision 1.157
diff -r1.157 glx.c
1516c1516
<     ctx->owner_unix_tid = wine_gettid();
---
 >     ctx->owner_unix_tid = wine_gettid_or_pid();

I donate this code to Transgaming.

rob