diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-05 06:44:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-05 06:44:40 +0000 |
commit | 1749cefdad726f2a44510a6c46d904b6e837dcc9 (patch) | |
tree | 844e660413b38c13a8742e4e2684ebc4d26a3a3e /cpukit/libcsupport/src/ttyname.c | |
parent | 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-1749cefdad726f2a44510a6c46d904b6e837dcc9.tar.bz2 |
Compile contents conditionally.
Diffstat (limited to 'cpukit/libcsupport/src/ttyname.c')
-rw-r--r-- | cpukit/libcsupport/src/ttyname.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/ttyname.c b/cpukit/libcsupport/src/ttyname.c index 59ea29be6e..9b86997caf 100644 --- a/cpukit/libcsupport/src/ttyname.c +++ b/cpukit/libcsupport/src/ttyname.c @@ -39,6 +39,8 @@ #include "config.h" #endif +#ifndef HAVE_TTYNAME + #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -98,7 +100,7 @@ int ttyname_r( } /* - * ttyname() - POSIX 1003.1b 4.7.2 - Demetermine Terminal Device Name + * ttyname() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name */ char *ttyname( @@ -109,3 +111,5 @@ char *ttyname( return ttyname_buf; return NULL; } + +#endif |