mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Add const to [my_]sigwait() arg, to make all declarations match.
include/my_pthread.h: - add const to [my_]sigwait() arg mysys/my_pthread.c: - add const to [my_]sigwait() arg
This commit is contained in:
parent
60a4499bae
commit
14ccbc09bb
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ void * my_pthread_getspecific_imp(pthread_key_t key);
|
|||
|
||||
#define pthread_sigmask(A,B,C) thr_sigsetmask((A),(B),(C))
|
||||
|
||||
extern int my_sigwait(sigset_t *set,int *sig);
|
||||
extern int my_sigwait(const sigset_t *set,int *sig);
|
||||
|
||||
#define pthread_detach_this_thread() pthread_dummy(0)
|
||||
|
||||
|
@ -309,7 +309,7 @@ extern int my_pthread_cond_init(pthread_cond_t *mp,
|
|||
#endif
|
||||
|
||||
#if !defined(HAVE_SIGWAIT) && !defined(HAVE_mit_thread) && !defined(HAVE_rts_threads) && !defined(sigwait) && !defined(alpha_linux_port) && !defined(HAVE_NONPOSIX_SIGWAIT) && !defined(HAVE_DEC_3_2_THREADS) && !defined(_AIX)
|
||||
int sigwait(sigset_t *setp, int *sigp); /* Use our implemention */
|
||||
int sigwait(const sigset_t *setp, int *sigp); /* Use our implemention */
|
||||
#endif
|
||||
#if !defined(HAVE_SIGSET) && !defined(HAVE_mit_thread) && !defined(sigset)
|
||||
#define sigset(A,B) do { struct sigaction s; sigset_t set; \
|
||||
|
|
|
@ -100,7 +100,7 @@ int my_pthread_create_detached=1;
|
|||
|
||||
#if defined(HAVE_NONPOSIX_SIGWAIT) || defined(HAVE_DEC_3_2_THREADS)
|
||||
|
||||
int my_sigwait(sigset_t *set,int *sig)
|
||||
int my_sigwait(const sigset_t *set,int *sig)
|
||||
{
|
||||
int signal=sigwait(set);
|
||||
if (signal < 0)
|
||||
|
|
Loading…
Reference in a new issue