From 2112e7a67c390f9b183bf69fa9d49345cc4a32af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sun, 4 Sep 2016 20:46:59 +0200 Subject: [PATCH] test: fix building pty test on Android Fixes: https://github.com/libuv/libuv/issues/1029 PR-URL: https://github.com/libuv/libuv/pull/1030 Reviewed-By: Ben Noordhuis --- test/test-tty.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/test-tty.c b/test/test-tty.c index 780968c4..d03f07a4 100644 --- a/test/test-tty.c +++ b/test/test-tty.c @@ -260,13 +260,12 @@ TEST_IMPL(tty_file) { } TEST_IMPL(tty_pty) { -#if defined(__ANDROID__) || \ - defined(__APPLE__) || \ - defined(__DragonFly__) || \ - defined(__FreeBSD__) || \ - defined(__FreeBSD_kernel__) || \ - defined(__linux__) || \ - defined(__NetBSD__) || \ +#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;