8252248: __SIGRTMAX is not declared in musl libc

Reviewed-by: alanb, vtewari, stuefe
This commit is contained in:
Alexander Scherbatiy 2020-08-31 11:18:20 +03:00
parent b957d802e6
commit 5490b03160
2 changed files with 6 additions and 8 deletions

View file

@ -32,17 +32,15 @@
#include "sun_nio_ch_NativeThread.h"
#include "nio_util.h"
#include <signal.h>
#include <pthread.h>
#ifdef __linux__
#include <pthread.h>
/* Also defined in net/linux_close.c */
#define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
#define INTERRUPT_SIGNAL (SIGRTMAX - 2)
#elif defined(_AIX)
#include <pthread.h>
/* Also defined in net/aix_close.c */
#define INTERRUPT_SIGNAL (SIGRTMAX - 1)
#elif defined(_ALLBSD_SOURCE)
#include <pthread.h>
/* Also defined in net/bsd_close.c */
#define INTERRUPT_SIGNAL SIGIO
#else