From 0c9420e204f9e089c3d6520534165d3c9b018e97 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 2 Dec 2005 16:57:37 +0000 Subject: [PATCH] OS X 10.3 does not have OCRNL #define'd, so we need to protect its usage This commit was SVN r8371. --- orte/mca/iof/base/iof_base_setup.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/orte/mca/iof/base/iof_base_setup.c b/orte/mca/iof/base/iof_base_setup.c index 5905263c19..0300434aa4 100644 --- a/orte/mca/iof/base/iof_base_setup.c +++ b/orte/mca/iof/base/iof_base_setup.c @@ -134,7 +134,13 @@ orte_iof_base_setup_child(orte_iof_base_io_conf_t *opts) return ORTE_ERROR; } term_attrs.c_iflag &= ~ (ICRNL | INLCR | ISTRIP | INPCK | IXON); - term_attrs.c_oflag &= ~ (OCRNL | ONLCR); + term_attrs.c_oflag &= ~ ( +#ifdef OCRNL + /* OS X 10.3 does not have this + value defined */ + OCRNL | +#endif + ONLCR); if (tcsetattr(opts->p_stdin[0], TCSANOW, &term_attrs) == -1) { return ORTE_ERROR; }