From 4b1b99d7c9a8f5434f7162ce850257172c88f6fe Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Fri, 31 Mar 2006 18:51:06 +0000 Subject: [PATCH] * better support platforms without any concept of a terminal at all This commit was SVN r9503. --- opal/util/opal_pty.c | 10 +++++++++- opal/util/opal_pty.h | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/opal/util/opal_pty.c b/opal/util/opal_pty.c index 6e4a5faf09..eec870db43 100644 --- a/opal/util/opal_pty.c +++ b/opal/util/opal_pty.c @@ -100,7 +100,15 @@ /* The only public interface is openpty - all others are to support openpty() */ -#ifdef __WINDOWS__ +#if OMPI_ENABLE_PTY_SUPPORT == 0 + +int opal_openpty(int *amaster, int *aslave, char *name, + void *termp, void *winpp) +{ + return -1; +} + +#elif defined(__WINDOWS__) /* yeah, let's assume for the moment that ptys don't work on windows */ diff --git a/opal/util/opal_pty.h b/opal/util/opal_pty.h index d380d0be56..68de41cad4 100644 --- a/opal/util/opal_pty.h +++ b/opal/util/opal_pty.h @@ -30,7 +30,16 @@ # endif #endif +#if OMPI_ENABLE_PTY_SUPPORT + int opal_openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize *winp); +#else + +int opal_openpty(int *amaster, int *aslave, char *name, + void *termp, void *winpp); + +#endif + #endif /* OPAL_UTIL_PTY_H */