From 1a4a78e1b45c3f352c8be8f148617fcd12910d3b Mon Sep 17 00:00:00 2001 From: tporadowski Date: Tue, 26 Jan 2021 23:45:17 +0100 Subject: [PATCH] [6.0] src/memtest.c --- src/memtest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/memtest.c b/src/memtest.c index aebd84b6..d7b98830 100644 --- a/src/memtest.c +++ b/src/memtest.c @@ -379,10 +379,15 @@ void memtest(size_t megabytes, int passes) { ws.ws_row = 20; } #else +#if !defined(__HAIKU__) if (ioctl(1, TIOCGWINSZ, &ws) == -1) { ws.ws_col = 80; ws.ws_row = 20; } +#else + ws.ws_col = 80; + ws.ws_row = 20; +#endif #endif memtest_alloc_and_test(megabytes,passes); printf("\nYour memory passed this test.\n");