openbsd-ports/sysutils/vifm/patches/patch-src_compat_curses_h
sthen 11890e829b Re-add sysutils/vifm, removed in 2015 due to runtime breakage, now fixed.
From xaizek at posteo.net (upstream, taking maintainer).
2022-08-27 16:28:16 +00:00

22 lines
807 B
Plaintext

Disable old workaround for curses on OpenBSD.
Index: src/compat/curses.h
--- src/compat/curses.h.orig
+++ src/compat/curses.h
@@ -31,11 +31,11 @@
* for implementation as it needs more than just wchar_t.) */
#define K(x) ((wchar_t)((wint_t)0xe000 + 1 + (x)))
-/* OpenBSD has perverted ncurses library, which has stubs with infinite loops
- * instead of real wide functions. As there is only a couple of wide functions
- * in use, they can be emulated. */
+/* In the past OpenBSD has perverted ncurses library, which had stubs with
+ * infinite loops instead of real wide functions. As there is only a couple of
+ * wide functions in use, they can be emulated on systems like that. */
-#ifndef __OpenBSD__
+#ifndef FAKE_NCURSESW
#define compat_wget_wch wget_wch
#define compat_waddwstr waddwstr