From aaf44d495a041af051d54006b6e5ea5ab882d4a3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 May 2000 19:07:19 +0000 Subject: [PATCH] Do not prototype fileno() if is is a macro. This was tripped on Solaris. --- c/src/tests/libtests/termios/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c/src/tests/libtests/termios/init.c b/c/src/tests/libtests/termios/init.c index 901087f22b..fd754da597 100644 --- a/c/src/tests/libtests/termios/init.c +++ b/c/src/tests/libtests/termios/init.c @@ -46,7 +46,9 @@ rtems_task Init (rtems_task_argument argument); #include #include +#if !defined(fileno) int fileno( FILE *stream); /* beyond ANSI */ +#endif /* Some of the termios dumping code depends on bit positions! */ @@ -372,10 +374,12 @@ void print_c_cflag( struct termios * tp ) else printf( "\tCLOCAL clear: don't ignore modem lines\n" ); +#if defined(CBAUDEX) if( tp->c_cflag & CBAUDEX ) printf( "\tCBAUDEX set: What does this do?\n" ); else printf( "\tCBAUDEX clear: What does this do?\n" ); +#endif if( tp->c_cflag & CRTSCTS ) printf( "\tCRTSCTS: harware flow control enabled?\n" );