don't declare pthread_mutexattr_settype() ourselves if the system already does it, we might have a slightly different declaration and this causes problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-25 22:48:06 +00:00
parent fdda7199e8
commit 123dca7d25
5 changed files with 95 additions and 12 deletions

View File

@@ -170,7 +170,8 @@ private:
friend class wxConditionInternal;
};
#ifdef HAVE_PTHREAD_MUTEXATTR_T
#if defined(HAVE_PTHREAD_MUTEXATTR_T) && \
wxUSE_UNIX && !defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL)
// on some systems pthread_mutexattr_settype() is not in the headers (but it is
// in the library, otherwise we wouldn't compile this code at all)
extern "C" int pthread_mutexattr_settype(pthread_mutexattr_t *, int);