1
1

* better support platforms without any concept of a terminal at all

This commit was SVN r9503.
Этот коммит содержится в:
Brian Barrett 2006-03-31 18:51:06 +00:00
родитель 65058d65e8
Коммит 4b1b99d7c9
2 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -100,7 +100,15 @@
/* The only public interface is openpty - all others are to support /* The only public interface is openpty - all others are to support
openpty() */ 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 */ /* yeah, let's assume for the moment that ptys don't work on windows */

Просмотреть файл

@ -30,7 +30,16 @@
# endif # endif
#endif #endif
#if OMPI_ENABLE_PTY_SUPPORT
int opal_openpty(int *amaster, int *aslave, char *name, int opal_openpty(int *amaster, int *aslave, char *name,
struct termios *termp, struct winsize *winp); 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 */ #endif /* OPAL_UTIL_PTY_H */