From 7f85924e8b65d9888067180a3c411e16fc19129d Mon Sep 17 00:00:00 2001 From: ThePrez Date: Tue, 20 Mar 2018 11:32:22 -0500 Subject: [PATCH] unix: use __PASE__ on IBM i platforms IBM i compilers now predefine __PASE__. This commit updates code to rely on that rather than manually setting (or relying on) a _PASE definition. PR-URL: https://github.com/libuv/libuv/pull/1782 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- checksparse.sh | 2 +- include/uv-unix.h | 2 +- uv.gyp | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/checksparse.sh b/checksparse.sh index 27eb529b..d8b50bc4 100755 --- a/checksparse.sh +++ b/checksparse.sh @@ -184,7 +184,7 @@ AIX) src/unix/aix.c" ;; OS400) - SPARSE_FLAGS="$SPARSE_FLAGS -D_PASE=1" + SPARSE_FLAGS="$SPARSE_FLAGS -D__PASE__=1" SOURCES="$SOURCES src/unix/aix-common.c src/unix/ibmi.c diff --git a/include/uv-unix.h b/include/uv-unix.h index da32f86e..480a0691 100644 --- a/include/uv-unix.h +++ b/include/uv-unix.h @@ -48,7 +48,7 @@ # include "uv-linux.h" #elif defined (__MVS__) # include "uv-os390.h" -#elif defined(_PASE) +#elif defined(__PASE__) # include "uv-posix.h" #elif defined(_AIX) # include "uv-aix.h" diff --git a/uv.gyp b/uv.gyp index 0f11f062..e41f9ff5 100644 --- a/uv.gyp +++ b/uv.gyp @@ -300,9 +300,6 @@ 'src/unix/no-fsevents.c', 'src/unix/no-proctitle.c', ], - 'defines': [ - '_PASE=1' - ], }, { 'sources': [ 'src/unix/aix.c'