zos: use pthread helper functions

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 <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
John Barboza 2016-07-24 18:11:18 -04:00 committed by Saúl Ibarra Corretgé
parent 841edfcd40
commit 00c0ff149d
2 changed files with 8 additions and 0 deletions

View File

@ -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

6
uv.gyp
View File

@ -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'
]
}],
]
},