loader: Don't bother checking for pthread.h existence, we require it anyway.

This commit is contained in:
Alexandre Julliard 2009-03-30 15:05:07 +02:00
parent 5170b1b456
commit 17c09347c0
4 changed files with 2 additions and 53 deletions

View File

@ -22,9 +22,7 @@
#include <stdarg.h>
#include <signal.h>
#include <sys/types.h>
#ifdef HAVE_PTHREAD_H
# include <pthread.h>
#endif
#include <pthread.h>
#include "windef.h"
#include "winnt.h"

View File

@ -33,9 +33,7 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_PTHREAD_H
# include <pthread.h>
#endif
#include <pthread.h>
#include "wine/library.h"
#include "main.h"

View File

@ -22,8 +22,6 @@
#ifndef __WINE_LOADER_MAIN_H
#define __WINE_LOADER_MAIN_H
#include "wine/pthread.h"
struct wine_preload_info
{
void *addr;

View File

@ -39,9 +39,7 @@
#include <sys/ucontext.h>
#include <sys/thr.h>
#endif
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
#ifdef HAVE_PTHREAD_NP_H
#include <pthread_np.h>
#endif
@ -49,8 +47,6 @@
#include "wine/library.h"
#include "wine/pthread.h"
#ifdef HAVE_PTHREAD_H
static int init_done;
static int nb_threads = 1;
@ -223,47 +219,6 @@ static void DECLSPEC_NORETURN abort_thread( long 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