* better support platforms without any concept of a terminal at all
This commit was SVN r9503.
Этот коммит содержится в:
родитель
65058d65e8
Коммит
4b1b99d7c9
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user