projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 6.0 - patch 20170812
[ncurses.git]
/
ncurses
/
tinfo
/
lib_baudrate.c
diff --git
a/ncurses/tinfo/lib_baudrate.c
b/ncurses/tinfo/lib_baudrate.c
index ba7e7a23273307052176529da3ed75d9ec2695de..d91e8aa98fc00594fc27c66b242a025f4ad5ac8f 100644
(file)
--- a/
ncurses/tinfo/lib_baudrate.c
+++ b/
ncurses/tinfo/lib_baudrate.c
@@
-1,5
+1,5
@@
/****************************************************************************
/****************************************************************************
- * Copyright (c) 1998-201
5,2016
Free Software Foundation, Inc. *
+ * Copyright (c) 1998-201
6,2017
Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@
-39,7
+39,7
@@
#include <curses.priv.h>
#include <termcap.h> /* ospeed */
#include <curses.priv.h>
#include <termcap.h> /* ospeed */
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__)
|| defined(__OpenBSD__)
#include <sys/param.h>
#endif
#include <sys/param.h>
#endif
@@
-49,7
+49,11
@@
* of the indices up to B115200 fit nicely in a 'short', allowing us to retain
* ospeed's type for compatibility.
*/
* 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(__NetBSD__) || \
+ ((defined(__OpenBSD__) && OpenBSD < 201510)) || \
+ defined(__APPLE__))
#undef B0
#undef B50
#undef B75
#undef B0
#undef B50
#undef B75
@@
-79,7
+83,7
@@
#undef USE_OLD_TTY
#endif /* USE_OLD_TTY */
#undef USE_OLD_TTY
#endif /* USE_OLD_TTY */
-MODULE_ID("$Id: lib_baudrate.c,v 1.4
1 2016/08/28 00:35:0
0 tom Exp $")
+MODULE_ID("$Id: lib_baudrate.c,v 1.4
3 2017/03/31 17:19:3
0 tom Exp $")
/*
* int
/*
* int
@@
-259,7
+263,7
@@
NCURSES_SP_NAME(baudrate) (NCURSES_SP_DCL0)
*/
#ifdef TRACE
if (IsValidTIScreen(SP_PARM)
*/
#ifdef TRACE
if (IsValidTIScreen(SP_PARM)
- && !NC_ISATTY(fileno(
SP_PARM
? SP_PARM->_ofp : stdout))
+ && !NC_ISATTY(fileno(
(SP_PARM && SP_PARM->_ofp)
? SP_PARM->_ofp : stdout))
&& getenv("BAUDRATE") != 0) {
int ret;
if ((ret = _nc_getenv_num("BAUDRATE")) <= 0)
&& getenv("BAUDRATE") != 0) {
int ret;
if ((ret = _nc_getenv_num("BAUDRATE")) <= 0)