From 0f8af611542e9bfad43c86eb461a39c6ff608180 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 16 Nov 2015 01:53:43 +0000 Subject: [PATCH] tests/ioctl: workaround glibc ioctl wrapper on powerpc * tests/ioctl.c (main) [POWERPC] Disable TCGETS test. --- tests/ioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ioctl.c b/tests/ioctl.c index 7882140f..f58fad96 100644 --- a/tests/ioctl.c +++ b/tests/ioctl.c @@ -31,12 +31,14 @@ int main(void ) { - struct termios tty; uint64_t data = 0; +#ifndef POWERPC + struct termios tty; (void) ioctl(-1, TCGETS, &tty); printf("ioctl(-1, TCGETS, %p)" " = -1 EBADF (Bad file descriptor)\n", &tty); +#endif (void) ioctl(-1, MMTIMER_GETRES, &data); printf("ioctl(-1, MMTIMER_GETRES, %p)" -- 2.40.0