mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
25 lines
955 B
C
25 lines
955 B
C
$NetBSD: patch-ncurses_tinfo_lib__baudrate.c,v 1.2 2015/08/17 17:10:32 wiz Exp $
|
|
|
|
sys/ttydev.h doesn't exist in OpenBSD 5.5
|
|
|
|
--- ncurses/tinfo/lib_baudrate.c.orig 2015-06-14 00:34:12.000000000 +0000
|
|
+++ ncurses/tinfo/lib_baudrate.c
|
|
@@ -39,7 +39,7 @@
|
|
|
|
#include <curses.priv.h>
|
|
#include <termcap.h> /* ospeed */
|
|
-#if defined(__FreeBSD__)
|
|
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
#include <sys/param.h>
|
|
#endif
|
|
|
|
@@ -49,7 +49,7 @@
|
|
* of the indices up to B115200 fit nicely in a 'short', allowing us to retain
|
|
* ospeed's type for compatibility.
|
|
*/
|
|
-#if NCURSES_OSPEED_COMPAT && ((defined(__FreeBSD__) && (__FreeBSD_version < 700000)) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__))
|
|
+#if NCURSES_OSPEED_COMPAT && ((defined(__FreeBSD__) && (__FreeBSD_version < 700000)) || defined(__minix) || defined(__NetBSD__) || (defined(__OpenBSD__) && (OpenBSD < 201405)) || defined(__APPLE__))
|
|
#undef B0
|
|
#undef B50
|
|
#undef B75
|