[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/5] meson.build: Remove ncurses workaround for OpenBSD
From: |
Michael Tokarev |
Subject: |
[PULL 4/5] meson.build: Remove ncurses workaround for OpenBSD |
Date: |
Tue, 22 Oct 2024 09:15:32 +0300 |
From: Brad Smith <brad@comstyle.com>
meson.build: Remove ncurses workaround for OpenBSD
OpenBSD 7.5 has upgraded to ncurses 6.4.
Signed-off-by: Brad Smith <brad@comstyle.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
meson.build | 2 +-
ui/curses.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index d26690ce20..c26c417de1 100644
--- a/meson.build
+++ b/meson.build
@@ -1399,7 +1399,7 @@ iconv = not_found
curses = not_found
if have_system and get_option('curses').allowed()
curses_test = '''
- #if defined(__APPLE__) || defined(__OpenBSD__)
+ #ifdef __APPLE__
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <locale.h>
diff --git a/ui/curses.c b/ui/curses.c
index ec61615f7c..4d0be9b37d 100644
--- a/ui/curses.c
+++ b/ui/curses.c
@@ -38,7 +38,7 @@
#include "ui/input.h"
#include "sysemu/sysemu.h"
-#if defined(__APPLE__) || defined(__OpenBSD__)
+#ifdef __APPLE__
#define _XOPEN_SOURCE_EXTENDED 1
#endif
--
2.39.5
- [PULL 0/5] Trivial patches for 2024-10-22, Michael Tokarev, 2024/10/22
- [PULL 1/5] linux-user: Clean up unused header, Michael Tokarev, 2024/10/22
- [PULL 2/5] ui/console-vc: Silence warning about sprintf() on OpenBSD, Michael Tokarev, 2024/10/22
- [PULL 3/5] configure: Replace literally printed '\n' with newline, Michael Tokarev, 2024/10/22
- [PULL 4/5] meson.build: Remove ncurses workaround for OpenBSD,
Michael Tokarev <=
- [PULL 5/5] replace error_setg(&error_fatal, ...) with error_report(), Michael Tokarev, 2024/10/22
- Re: [PULL 0/5] Trivial patches for 2024-10-22, Peter Maydell, 2024/10/24