Skip to contentSkip to conversation

meson.build: Remove ncurses workaround for OpenBSD

PATCH Applied Brad Smith 3 participants 3 messages Oct 12, 2024 – Oct 18, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore

Brad Smith

author
#0 lore raw

PATCH 1/1 meson.build: Remove ncurses workaround for OpenBSD

meson.build: Remove ncurses workaround for OpenBSD

OpenBSD 7.5 has upgraded to ncurses 6.4.

---
 meson.build | 2 +-
 ui/curses.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meson.build +1 -1
index 4ea1984fc5..22e7629d81 100644
@@ -1374,7 +1374,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>
ui/curses.c +1 -1
index ec61615f7c..4d0be9b37d 100644
@@ -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
 
Signature · 1 line
2.46.1
Reviewed-by on v1 1/1
#1 lore raw

Cc'ing qemu-trivial

Quoted 9 lines · Brad Smith

meson.build: Remove ncurses workaround for OpenBSD

OpenBSD 7.5 has upgraded to ncurses 6.4.

---
 meson.build | 2 +-
 ui/curses.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Quoted 19 lines
meson.build +1 -1
index 4ea1984fc5..22e7629d81 100644
@@ -1374,7 +1374,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>
ui/curses.c +0 -0
index ec61615f7c..4d0be9b37d 100644

ui/curses.c line 43

Quoted 7 lines
ui/curses.c +1 -1
@@ -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

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to Brad Smith
Quoted 3 lines · Brad Smith

meson.build: Remove ncurses workaround for OpenBSD

OpenBSD 7.5 has upgraded to ncurses 6.4.

Queued to qemu-trivial tree, thanks!

/mjt