Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
54acf626
Commit
54acf626
authored
Aug 28, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing functions for platforms that don't build the pthreads
emulation (reported by Todd Vierling).
parent
02f28139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
pthread.c
scheduler/pthread.c
+7
-2
No files found.
scheduler/pthread.c
View file @
54acf626
...
@@ -222,8 +222,6 @@ static int *libc_multiple_threads;
...
@@ -222,8 +222,6 @@ static int *libc_multiple_threads;
void
PTHREAD_init_done
(
void
)
void
PTHREAD_init_done
(
void
)
{
{
init_done
=
1
;
init_done
=
1
;
if
(
!
libc_fork
)
libc_fork
=
dlsym
(
RTLD_NEXT
,
"fork"
);
if
(
!
libc_sigaction
)
libc_sigaction
=
dlsym
(
RTLD_NEXT
,
"sigaction"
);
}
}
struct
__res_state
*
__res_state
(
void
)
struct
__res_state
*
__res_state
(
void
)
...
@@ -266,6 +264,8 @@ void PTHREAD_init_thread(void)
...
@@ -266,6 +264,8 @@ void PTHREAD_init_thread(void)
NtCurrentTeb
()
->
pthread_data
=
&
initial_descr
;
NtCurrentTeb
()
->
pthread_data
=
&
initial_descr
;
errno_location_ptr
=
thread_errno_location
;
errno_location_ptr
=
thread_errno_location
;
h_errno_location_ptr
=
thread_h_errno_location
;
h_errno_location_ptr
=
thread_h_errno_location
;
libc_fork
=
dlsym
(
RTLD_NEXT
,
"fork"
);
libc_sigaction
=
dlsym
(
RTLD_NEXT
,
"sigaction"
);
libc_uselocale
=
dlsym
(
RTLD_NEXT
,
"uselocale"
);
libc_uselocale
=
dlsym
(
RTLD_NEXT
,
"uselocale"
);
libc_pthread_init
=
dlsym
(
RTLD_NEXT
,
"__libc_pthread_init"
);
libc_pthread_init
=
dlsym
(
RTLD_NEXT
,
"__libc_pthread_init"
);
if
(
libc_pthread_init
)
libc_multiple_threads
=
libc_pthread_init
(
&
wine_pthread_functions
);
if
(
libc_pthread_init
)
libc_multiple_threads
=
libc_pthread_init
(
&
wine_pthread_functions
);
...
@@ -959,6 +959,11 @@ static struct pthread_functions wine_pthread_functions =
...
@@ -959,6 +959,11 @@ static struct pthread_functions wine_pthread_functions =
NULL
/* ptr_pthread_raise */
NULL
/* ptr_pthread_raise */
};
};
#else
/* __GLIBC__ || __FREEBSD__ */
void
PTHREAD_init_thread
(
void
)
{
}
void
PTHREAD_init_done
(
void
)
{
}
#endif
/* __GLIBC__ || __FREEBSD__ */
#endif
/* __GLIBC__ || __FREEBSD__ */
#else
/* HAVE_NPTL */
#else
/* HAVE_NPTL */
...
...
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