ext/libuv/test/test-tty.c in libuv-2.0.12 vs ext/libuv/test/test-tty.c in libuv-3.0.0

- old
+ new

@@ -26,11 +26,11 @@ # include <io.h> # include <windows.h> #else /* Unix */ # include <fcntl.h> # include <unistd.h> -# if defined(__linux__) +# if (defined(__linux__) || defined(__GLIBC__)) && !defined(__ANDROID__) # include <pty.h> # elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) # include <util.h> # elif defined(__FreeBSD__) || defined(__DragonFly__) # include <libutil.h> @@ -258,11 +258,16 @@ #endif return 0; } TEST_IMPL(tty_pty) { -# if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) || \ - defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__APPLE__) || \ + defined(__DragonFly__) || \ + defined(__FreeBSD__) || \ + defined(__FreeBSD_kernel__) || \ + (defined(__linux__) && !defined(__ANDROID__)) || \ + defined(__NetBSD__) || \ + defined(__OpenBSD__) int master_fd, slave_fd, r; struct winsize w; uv_loop_t loop; uv_tty_t master_tty, slave_tty;