mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-27 02:49:42 +00:00
We HAVE_PTHREADS even if we use our own pthreads implementation, this also
induces availability of locking primitives. I will merge the !HAVE_PTHREADS case (a la Basilisk II) for EMULATED_PPC when I get back to home.
This commit is contained in:
parent
b92ce82a32
commit
52138d2014
@ -185,7 +185,9 @@ no:linux*|no:netbsd*)
|
||||
AC_CHECK_LIB(pthread, pthread_create, , [
|
||||
AC_CHECK_LIB(c_r, pthread_create, , [
|
||||
AC_CHECK_LIB(PTL, pthread_create, , [
|
||||
AC_MSG_ERROR([You need pthreads to run Basilisk II.])
|
||||
dnl XXX remove when no pthreads case is merged
|
||||
AC_MSG_ERROR([You need pthreads to run SheepShaver.])
|
||||
HAVE_PTHREADS=no
|
||||
])
|
||||
])
|
||||
])
|
||||
@ -193,9 +195,6 @@ no:linux*|no:netbsd*)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_settype)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_setpshared)
|
||||
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
|
||||
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
|
||||
fi
|
||||
dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.
|
||||
SEMSRC=
|
||||
AC_CHECK_FUNCS(sem_init, , [
|
||||
@ -205,6 +204,9 @@ no:linux*|no:netbsd*)
|
||||
])
|
||||
;;
|
||||
esac
|
||||
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
|
||||
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
|
||||
fi
|
||||
|
||||
dnl We use FBDev DGA if possible.
|
||||
if [[ "x$WANT_FBDEV_DGA" = "xyes" ]]; then
|
||||
|
@ -428,7 +428,7 @@ typedef struct timeval tm_time_t;
|
||||
extern uint64 GetTicks_usec(void);
|
||||
extern void Delay_usec(uint32 usec);
|
||||
|
||||
#if defined(HAVE_PTHREADS) || ((defined(__linux__) || defined(__NetBSD__)) && defined(__powerpc__))
|
||||
#ifdef HAVE_PTHREADS
|
||||
// Setup pthread attributes
|
||||
extern void Set_pthread_attr(pthread_attr_t *attr, int priority);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user