mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-07 10:14:06 +00:00
loader: Don't bother checking for pthread.h existence, we require it anyway.
This commit is contained in:
parent
5170b1b456
commit
17c09347c0
|
@ -22,9 +22,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_PTHREAD_H
|
#include <pthread.h>
|
||||||
# include <pthread.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winnt.h"
|
#include "winnt.h"
|
||||||
|
|
|
@ -33,9 +33,7 @@
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PTHREAD_H
|
#include <pthread.h>
|
||||||
# include <pthread.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wine/library.h"
|
#include "wine/library.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#ifndef __WINE_LOADER_MAIN_H
|
#ifndef __WINE_LOADER_MAIN_H
|
||||||
#define __WINE_LOADER_MAIN_H
|
#define __WINE_LOADER_MAIN_H
|
||||||
|
|
||||||
#include "wine/pthread.h"
|
|
||||||
|
|
||||||
struct wine_preload_info
|
struct wine_preload_info
|
||||||
{
|
{
|
||||||
void *addr;
|
void *addr;
|
||||||
|
|
|
@ -39,9 +39,7 @@
|
||||||
#include <sys/ucontext.h>
|
#include <sys/ucontext.h>
|
||||||
#include <sys/thr.h>
|
#include <sys/thr.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PTHREAD_H
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
|
||||||
#ifdef HAVE_PTHREAD_NP_H
|
#ifdef HAVE_PTHREAD_NP_H
|
||||||
#include <pthread_np.h>
|
#include <pthread_np.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,8 +47,6 @@
|
||||||
#include "wine/library.h"
|
#include "wine/library.h"
|
||||||
#include "wine/pthread.h"
|
#include "wine/pthread.h"
|
||||||
|
|
||||||
#ifdef HAVE_PTHREAD_H
|
|
||||||
|
|
||||||
static int init_done;
|
static int init_done;
|
||||||
static int nb_threads = 1;
|
static int nb_threads = 1;
|
||||||
|
|
||||||
|
@ -223,47 +219,6 @@ static void DECLSPEC_NORETURN abort_thread( long status )
|
||||||
pthread_exit( (void *)status );
|
pthread_exit( (void *)status );
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* HAVE_PTHREAD_H */
|
|
||||||
|
|
||||||
static void init_process( const struct wine_pthread_callbacks *callbacks, size_t size )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void init_thread( struct wine_pthread_thread_info *info )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int create_thread( struct wine_pthread_thread_info *info )
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void init_current_teb( struct wine_pthread_thread_info *info )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void *get_current_teb(void)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void DECLSPEC_NORETURN exit_thread( struct wine_pthread_thread_info *info )
|
|
||||||
{
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void DECLSPEC_NORETURN abort_thread( long status )
|
|
||||||
{
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
static int pthread_sigmask( int how, const sigset_t *newset, sigset_t *oldset )
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* HAVE_PTHREAD_H */
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* pthread_functions
|
* pthread_functions
|
||||||
|
|
Loading…
Reference in a new issue