Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
150b5dca
Commit
150b5dca
authored
Dec 29, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Use the Mach thread port as thread id on Mac OS.
parent
cd1c7fc0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
pthread.c
loader/pthread.c
+5
-0
No files found.
configure
View file @
150b5dca
...
...
@@ -7028,6 +7028,7 @@ done
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
...
...
@@ -7067,6 +7068,7 @@ for ac_header in \
linux/param.h
\
linux/serial.h
\
linux/ucdrom.h
\
mach/mach.h
\
mach/machine.h
\
machine/cpu.h
\
machine/limits.h
\
...
...
configure.ac
View file @
150b5dca
...
...
@@ -197,6 +197,7 @@ AC_CHECK_HEADERS(\
linux/param.h \
linux/serial.h \
linux/ucdrom.h \
mach/mach.h \
mach/machine.h \
machine/cpu.h \
machine/limits.h \
...
...
include/config.h.in
View file @
150b5dca
...
...
@@ -423,6 +423,9 @@
/* Define to 1 if you have the <mach/machine.h> header file. */
#undef HAVE_MACH_MACHINE_H
/* Define to 1 if you have the <mach/mach.h> header file. */
#undef HAVE_MACH_MACH_H
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
...
...
loader/pthread.c
View file @
150b5dca
...
...
@@ -34,6 +34,9 @@
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef HAVE_MACH_MACH_H
#include <mach/mach.h>
#endif
#include "wine/library.h"
#include "wine/pthread.h"
...
...
@@ -144,6 +147,8 @@ static void init_current_teb( struct wine_pthread_thread_info *info )
info
->
pid
=
getpid
();
#ifdef __sun
info
->
tid
=
pthread_self
();
/* this should return the lwp id on solaris */
#elif defined(__APPLE__)
info
->
tid
=
mach_thread_self
();
#else
info
->
tid
=
gettid
();
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment