Skip to content

Commit

Permalink
ibmi: add support for IBM i to autotools build
Browse files Browse the repository at this point in the history
PR-URL: libuv#2148
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
kadler authored and cjihrig committed Jan 17, 2019
1 parent 8d62d93 commit ca02c36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ test_run_tests_CFLAGS += -D_UNIX03_THREADS \
-qFLOAT=IEEE
endif

if OS400
test_run_tests_CFLAGS += -D_ALL_SOURCE \
-D_XOPEN_SOURCE=500 \
-D_LINUX_SOURCE_COMPAT
endif

if AIX
libuv_la_CFLAGS += -D_ALL_SOURCE \
-D_XOPEN_SOURCE=500 \
Expand Down Expand Up @@ -479,6 +485,18 @@ libuv_la_SOURCES += src/unix/pthread-fixes.c \
src/unix/os390-syscalls.c \
src/unix/proctitle.c
endif
if OS400
libuv_la_CFLAGS += -D_ALL_SOURCE \
-D_XOPEN_SOURCE=500 \
-D_LINUX_SOURCE_COMPAT \
-D_THREAD_SAFE
uvinclude_HEADERS += include/uv/posix.h
libuv_la_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

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @[email protected]
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ AM_CONDITIONAL([HURD], [AS_CASE([$host_os],[gnu*], [true], [false])
AM_CONDITIONAL([LINUX], [AS_CASE([$host_os],[linux*], [true], [false])])
AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false])])
AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])])
AM_CONDITIONAL([OS400], [AS_CASE([$host_os],[os400*], [true], [false])])
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os],[openbsd*], [true], [false])])
AM_CONDITIONAL([OS390], [AS_CASE([$host_os],[openedition*], [true], [false])])
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os],[solaris*], [true], [false])])
Expand Down

0 comments on commit ca02c36

Please sign in to comment.