diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index 56e2b2fd645..75e60efea46 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -22,9 +22,7 @@ #include #include #include -#ifdef HAVE_PTHREAD_H -# include -#endif +#include #include "windef.h" #include "winnt.h" diff --git a/loader/main.c b/loader/main.c index 4c2cb504c49..c3189ec5b10 100644 --- a/loader/main.c +++ b/loader/main.c @@ -33,9 +33,7 @@ #ifdef HAVE_UNISTD_H # include #endif -#ifdef HAVE_PTHREAD_H -# include -#endif +#include #include "wine/library.h" #include "main.h" diff --git a/loader/main.h b/loader/main.h index 0c6fc84195b..b06423f227e 100644 --- a/loader/main.h +++ b/loader/main.h @@ -22,8 +22,6 @@ #ifndef __WINE_LOADER_MAIN_H #define __WINE_LOADER_MAIN_H -#include "wine/pthread.h" - struct wine_preload_info { void *addr; diff --git a/loader/pthread.c b/loader/pthread.c index e4e0831f210..712bd379075 100644 --- a/loader/pthread.c +++ b/loader/pthread.c @@ -39,9 +39,7 @@ #include #include #endif -#ifdef HAVE_PTHREAD_H #include -#endif #ifdef HAVE_PTHREAD_NP_H #include #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