mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Do not prototype fileno() if is is a macro. This was tripped on Solaris.
This commit is contained in:
@@ -46,7 +46,9 @@ rtems_task Init (rtems_task_argument argument);
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if !defined(fileno)
|
||||||
int fileno( FILE *stream); /* beyond ANSI */
|
int fileno( FILE *stream); /* beyond ANSI */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Some of the termios dumping code depends on bit positions! */
|
/* Some of the termios dumping code depends on bit positions! */
|
||||||
|
|
||||||
@@ -372,10 +374,12 @@ void print_c_cflag( struct termios * tp )
|
|||||||
else
|
else
|
||||||
printf( "\tCLOCAL clear: don't ignore modem lines\n" );
|
printf( "\tCLOCAL clear: don't ignore modem lines\n" );
|
||||||
|
|
||||||
|
#if defined(CBAUDEX)
|
||||||
if( tp->c_cflag & CBAUDEX )
|
if( tp->c_cflag & CBAUDEX )
|
||||||
printf( "\tCBAUDEX set: What does this do?\n" );
|
printf( "\tCBAUDEX set: What does this do?\n" );
|
||||||
else
|
else
|
||||||
printf( "\tCBAUDEX clear: What does this do?\n" );
|
printf( "\tCBAUDEX clear: What does this do?\n" );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( tp->c_cflag & CRTSCTS )
|
if( tp->c_cflag & CRTSCTS )
|
||||||
printf( "\tCRTSCTS: harware flow control enabled?\n" );
|
printf( "\tCRTSCTS: harware flow control enabled?\n" );
|
||||||
|
|||||||
Reference in New Issue
Block a user