mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8211146: fix problematic elif-tests after recent gcc warning changes Werror=undef
Reviewed-by: stuefe, clanger, dholmes, chegar, alanb
This commit is contained in:
parent
b31408a667
commit
19ca9280a6
@ -47,7 +47,7 @@
|
||||
#ifndef SO_REUSEPORT
|
||||
#ifdef __linux__
|
||||
#define SO_REUSEPORT 15
|
||||
#elif __solaris__
|
||||
#elif defined(__solaris__)
|
||||
#define SO_REUSEPORT 0x100e
|
||||
#elif defined(AIX) || defined(MACOSX)
|
||||
#define SO_REUSEPORT 0x0200
|
||||
|
||||
@ -37,14 +37,14 @@
|
||||
#include <pthread.h>
|
||||
/* Also defined in net/linux_close.c */
|
||||
#define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
|
||||
#elif _AIX
|
||||
#elif defined(_AIX)
|
||||
#include <pthread.h>
|
||||
/* Also defined in net/aix_close.c */
|
||||
#define INTERRUPT_SIGNAL (SIGRTMAX - 1)
|
||||
#elif __solaris__
|
||||
#elif defined(__solaris__)
|
||||
#include <thread.h>
|
||||
#define INTERRUPT_SIGNAL (SIGRTMAX - 2)
|
||||
#elif _ALLBSD_SOURCE
|
||||
#elif defined(_ALLBSD_SOURCE)
|
||||
#include <pthread.h>
|
||||
/* Also defined in net/bsd_close.c */
|
||||
#define INTERRUPT_SIGNAL SIGIO
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
#ifndef SO_REUSEPORT
|
||||
#ifdef __linux__
|
||||
#define SO_REUSEPORT 15
|
||||
#elif __solaris__
|
||||
#elif defined(__solaris__)
|
||||
#define SO_REUSEPORT 0x100e
|
||||
#elif defined(AIX) || defined(MACOSX)
|
||||
#define SO_REUSEPORT 0x0200
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
#include <sys/types.h>
|
||||
#ifdef _ALLBSD_SOURCE
|
||||
#include <machine/endian.h>
|
||||
#elif __linux__
|
||||
#elif defined(__linux__)
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user