From 693b534f2c6073d467218ddc742e57c5115928c9 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 20 May 2019 11:06:09 -0400 Subject: [PATCH] unix: simplify uv/posix.h include logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit includes uv/posix.h in one #elif instead of four. PR-URL: https://github.com/libuv/libuv/pull/2302 Reviewed-By: Refael Ackermann Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Richard Lau --- include/uv/unix.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/uv/unix.h b/include/uv/unix.h index 26df0ec1..f73b7b04 100644 --- a/include/uv/unix.h +++ b/include/uv/unix.h @@ -49,8 +49,6 @@ # include "uv/linux.h" #elif defined (__MVS__) # include "uv/os390.h" -#elif defined(__PASE__) -# include "uv/posix.h" #elif defined(_AIX) # include "uv/aix.h" #elif defined(__sun) @@ -63,9 +61,10 @@ defined(__OpenBSD__) || \ defined(__NetBSD__) # include "uv/bsd.h" -#elif defined(__CYGWIN__) || defined(__MSYS__) -# include "uv/posix.h" -#elif defined(__GNU__) +#elif defined(__PASE__) || \ + defined(__CYGWIN__) || \ + defined(__MSYS__) || \ + defined(__GNU__) # include "uv/posix.h" #endif