diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2011-12-02 15:17:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel@gcc.gnu.org> | 2011-12-02 15:17:14 +0000 |
commit | d0234c7ea568a43931259a649dfc1bb2bf6e4d93 (patch) | |
tree | 5b3c66b9ef6c2e3f6a5abc3d00b5bd78c86f5158 /gcc/ada/terminals.c | |
parent | d600ef1636fda28b2e8612253b7ab1a04066af0e (diff) | |
download | gcc-d0234c7ea568a43931259a649dfc1bb2bf6e4d93.zip gcc-d0234c7ea568a43931259a649dfc1bb2bf6e4d93.tar.gz gcc-d0234c7ea568a43931259a649dfc1bb2bf6e4d93.tar.bz2 |
s-tpopsp-rtems.adb: Use ATCB_Key rather than RTEMS_Ada_Self variable for consistency with other ports.
2011-12-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* s-tpopsp-rtems.adb: Use ATCB_Key rather than RTEMS_Ada_Self variable
for consistency with other ports.
* s-osinte-rtems.adb: Add body for dummy implementation of
pthread_rwlockattr_setkind_np().
* s-osinte-rtems.ads: Add missing clock and rwlock bindings.
* terminals.c: Add __rtems__ conditionals to account for differences
in termios implementation.
From-SVN: r181924
Diffstat (limited to 'gcc/ada/terminals.c')
-rw-r--r-- | gcc/ada/terminals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c index 464e60a..18a4f2a 100644 --- a/gcc/ada/terminals.c +++ b/gcc/ada/terminals.c @@ -991,7 +991,8 @@ __gnat_setup_winsize (void *desc, int rows, int columns) /* On some system termio is either absent or including it will disable termios (HP-UX) */ -#if ! defined (__hpux__) && ! defined (FREEBSD) && ! defined (__APPLE__) +#if ! defined (__hpux__) && ! defined (FREEBSD) && \ + ! defined (__APPLE__) && ! defined(__rtems__) # include <termio.h> #endif @@ -1142,10 +1143,12 @@ allocate_pty_desc (pty_desc **desc) { return -1; } +#if !defined(__rtems__) /* grant access to the slave side */ grantpt (master_fd); /* unlock the terminal */ unlockpt (master_fd); +#endif /* set desc and return 0 */ result = malloc (sizeof (pty_desc)); |