@@ -36,7 +36,7 @@ libuv_la_SOURCES = src/fs-poll.c \
3636if SUNOS
3737# Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers
3838# on other platforms complain that the argument is unused during compilation.
39- libuv_la_CFLAGS += -pthread
39+ libuv_la_CFLAGS += -pthreads
4040endif
4141
4242if WINNT
@@ -48,6 +48,7 @@ AM_CPPFLAGS += -I$(top_srcdir)/src/win \
4848libuv_la_SOURCES += src/win/async.c \
4949 src/win/atomicops-inl.h \
5050 src/win/core.c \
51+ src/win/detect-wakeup.c \
5152 src/win/dl.c \
5253 src/win/error.c \
5354 src/win/fs-event.c \
@@ -128,7 +129,18 @@ EXTRA_DIST = test/fixtures/empty_file \
128129
129130TESTS = test/run-tests
130131check_PROGRAMS = test/run-tests
132+ if OS390
131133test_run_tests_CFLAGS =
134+ else
135+ test_run_tests_CFLAGS = -Wno-long-long
136+ endif
137+
138+ if SUNOS
139+ # Can't be turned into a CC_CHECK_CFLAGS in configure.ac, it makes compilers
140+ # on other platforms complain that the argument is unused during compilation.
141+ test_run_tests_CFLAGS += -pthreads
142+ endif
143+
132144test_run_tests_LDFLAGS =
133145test_run_tests_SOURCES = test/blackhole-server.c \
134146 test/dns-server.c \
@@ -215,6 +227,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
215227 test/test-socket-buffer-size.c \
216228 test/test-spawn.c \
217229 test/test-stdio-over-pipes.c \
230+ test/test-tcp-alloc-cb-fail.c \
218231 test/test-tcp-bind-error.c \
219232 test/test-tcp-bind6-error.c \
220233 test/test-tcp-close-accept.c \
@@ -246,6 +259,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
246259 test/test-timer.c \
247260 test/test-tmpdir.c \
248261 test/test-tty.c \
262+ test/test-udp-alloc-cb-fail.c \
249263 test/test-udp-bind.c \
250264 test/test-udp-create-socket-early.c \
251265 test/test-udp-dgram-too-big.c \
@@ -277,10 +291,29 @@ if AIX
277291test_run_tests_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500 -D_LINUX_SOURCE_COMPAT
278292endif
279293
294+ if LINUX
295+ test_run_tests_CFLAGS += -D_GNU_SOURCE
296+ endif
297+
280298if SUNOS
281299test_run_tests_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
282300endif
283301
302+ if OS390
303+ test_run_tests_CFLAGS += -D_UNIX03_THREADS \
304+ -D_UNIX03_SOURCE \
305+ -D_OPEN_SYS_IF_EXT=1 \
306+ -D_OPEN_SYS_SOCK_IPV6 \
307+ -D_OPEN_MSGQ_EXT \
308+ -D_XOPEN_SOURCE_EXTENDED \
309+ -D_ALL_SOURCE \
310+ -D_LARGE_TIME_API \
311+ -D_OPEN_SYS_FILE_EXT \
312+ -DPATH_MAX=255 \
313+ -qCHARS=signed \
314+ -qXPLINK \
315+ -qFLOAT=IEEE
316+ endif
284317
285318if AIX
286319libuv_la_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500 -D_LINUX_SOURCE_COMPAT -D_THREAD_SAFE
@@ -312,6 +345,7 @@ endif
312345
313346if DRAGONFLY
314347include_HEADERS += include/uv-bsd.h
348+ libuv_la_SOURCES += src/unix/freebsd.c src/unix/kqueue.c
315349test_run_tests_LDFLAGS += -lutil
316350endif
317351
@@ -350,6 +384,28 @@ libuv_la_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
350384libuv_la_SOURCES += src/unix/sunos.c
351385endif
352386
387+ if OS390
388+ include_HEADERS += include/pthread-fixes.h include/pthread-barrier.h
389+ libuv_la_CFLAGS += -D_UNIX03_THREADS \
390+ -D_UNIX03_SOURCE \
391+ -D_OPEN_SYS_IF_EXT=1 \
392+ -D_OPEN_MSGQ_EXT \
393+ -D_XOPEN_SOURCE_EXTENDED \
394+ -D_ALL_SOURCE \
395+ -D_LARGE_TIME_API \
396+ -D_OPEN_SYS_SOCK_IPV6 \
397+ -D_OPEN_SYS_FILE_EXT \
398+ -DUV_PLATFORM_SEM_T=int \
399+ -DPATH_MAX=255 \
400+ -qCHARS=signed \
401+ -qXPLINK \
402+ -qFLOAT=IEEE
403+ libuv_la_LDFLAGS += -qXPLINK
404+ libuv_la_SOURCES += src/unix/pthread-fixes.c \
405+ src/unix/pthread-barrier.c
406+ libuv_la_SOURCES += src/unix/os390.c
407+ endif
408+
353409if HAVE_PKG_CONFIG
354410pkgconfigdir = $(libdir ) /pkgconfig
355411pkgconfig_DATA = @
[email protected]
0 commit comments