From 00c0ff149d7a33801853f08dfcb6f175a8b6b576 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Sun, 24 Jul 2016 18:11:18 -0400 Subject: [PATCH] zos: use pthread helper functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zOS does not implement some pthread_barrier functions. So we will use the provided helper functions in src/unix/pthread*. PR-URL: https://github.com/libuv/libuv/pull/954 Reviewed-By: Ben Noordhuis Reviewed-By: Saúl Ibarra Corretgé --- Makefile.am | 2 ++ uv.gyp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Makefile.am b/Makefile.am index aab6b0c8..8d5e68b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -390,6 +390,8 @@ libuv_la_CFLAGS += -D_UNIX03_THREADS \ -qXPLINK \ -qFLOAT=IEEE libuv_la_LDFLAGS += -qXPLINK +libuv_la_SOURCES += src/unix/pthread-fixes.c \ + src/unix/pthread-barrier.c endif if HAVE_PKG_CONFIG diff --git a/uv.gyp b/uv.gyp index 3a480dea..a2edc9ec 100644 --- a/uv.gyp +++ b/uv.gyp @@ -302,6 +302,12 @@ ['uv_library=="shared_library"', { 'defines': [ 'BUILDING_UV_SHARED=1' ] }], + ['OS=="zos"', { + 'sources': [ + 'src/unix/pthread-fixes.c', + 'src/unix/pthread-barrier.c' + ] + }], ] },