mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Workaround for bug with gcc on Solaris using pthread_setschedprio
Improved data typing of server variables in InnoDB to avoid bugs on Windows. Workaround for bug in gcc assembler on 32-bit Mac OS X as well as on Solaris.
This commit is contained in:
@ -279,7 +279,13 @@ int sigwait(sigset_t *setp, int *sigp); /* Use our implemention */
|
||||
#define my_pthread_setprio(A,B) pthread_setprio_np((A),(B))
|
||||
#elif defined(HAVE_PTHREAD_SETPRIO)
|
||||
#define my_pthread_setprio(A,B) pthread_setprio((A),(B))
|
||||
#elif defined(HAVE_PTHREAD_SETSCHEDPRIO)
|
||||
#elif defined(HAVE_PTHREAD_SETSCHEDPRIO) && !defined (__GNUC)
|
||||
/*
|
||||
Workaround for bug on Solaris where pthread.h have bug in GNU
|
||||
version of pthread.h => configure says yes, header files says
|
||||
no. So not used with gcc and issue is Solaris only, so will
|
||||
be used on Solaris using SunStudio.
|
||||
*/
|
||||
#define my_pthread_setprio(A,B) pthread_setschedprio((A),(B))
|
||||
#else
|
||||
extern void my_pthread_setprio(pthread_t thread_id,int prior);
|
||||
|
Reference in New Issue
Block a user