From 4a24df9167c14717089e1076ff59a3753c537b26 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 26 Feb 2016 15:57:18 -0500 Subject: [PATCH] build: compile with -D_THREAD_SAFE on AIX This enables thread safe errno on AIX and causes the following tests to pass: ipc_send_recv_pipe_inprocess ipc_send_recv_tcp_inprocess fs_poll fs_file_noent fs_file_nametoolong fs_file_loop fs_chown fs_readlink fs_realpath fs_scandir_file PR-URL: https://github.com/libuv/libuv/pull/739 Reviewed-By: Ben Noordhuis --- Makefile.am | 2 +- uv.gyp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 663b55ee..a0de6f56 100644 --- a/Makefile.am +++ b/Makefile.am @@ -282,7 +282,7 @@ endif if AIX -libuv_la_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500 -D_LINUX_SOURCE_COMPAT +libuv_la_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500 -D_LINUX_SOURCE_COMPAT -D_THREAD_SAFE include_HEADERS += include/uv-aix.h libuv_la_SOURCES += src/unix/aix.c endif diff --git a/uv.gyp b/uv.gyp index cd945b18..a12753a9 100644 --- a/uv.gyp +++ b/uv.gyp @@ -241,6 +241,7 @@ '_ALL_SOURCE', '_XOPEN_SOURCE=500', '_LINUX_SOURCE_COMPAT', + '_THREAD_SAFE', ], 'link_settings': { 'libraries': [