From 8d62d933ef31fd47ae269395364a280a12eb9636 Mon Sep 17 00:00:00 2001 From: Kevin Adler Date: Tue, 15 Jan 2019 12:27:20 -0600 Subject: [PATCH] ibmi: add support for IBM i to cmake build PR-URL: https://github.com/libuv/libuv/pull/2148 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa268a13ed6..e925614d429 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,6 +305,21 @@ if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") list(APPEND uv_sources src/unix/openbsd.c) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "OS400") + list(APPEND uv_cflags -Wno-attributes) + list(APPEND uv_defines + _ALL_SOURCE + _LINUX_SOURCE_COMPAT + _THREAD_SAFE + _XOPEN_SOURCE=500) + list(APPEND uv_sources + src/unix/aix-common.c + src/unix/ibmi.c + src/unix/posix-poll.c + src/unix/no-fsevents.c + src/unix/no-proctitle.c) +endif() + if(CMAKE_SYSTEM_NAME STREQUAL "OS/390") list(APPEND uv_defines PATH_MAX=255) list(APPEND uv_defines _AE_BIMODAL)