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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user