From 225af83b32d89746243e2c1202a6e2f643f504d3 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 18 Nov 2004 17:40:03 +0000 Subject: [PATCH] This code is written on top of a driver interface only available with linux (/proc file system) so it doesn't make sense to have other OS's trying to open these files because they could never exist. --- src/Network/ATC-Inputs.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Network/ATC-Inputs.cxx b/src/Network/ATC-Inputs.cxx index 0d11ca64e..d950dc824 100644 --- a/src/Network/ATC-Inputs.cxx +++ b/src/Network/ATC-Inputs.cxx @@ -63,6 +63,7 @@ FGATCInput::FGATCInput( const int _board, const SGPath &_config_file ) : // Read analog inputs static void ATCReadAnalogInputs( int fd, unsigned char *analog_in_bytes ) { +#if defined( unix ) || defined( __CYGWIN__ ) // rewind lseek( fd, 0, SEEK_SET ); @@ -71,11 +72,13 @@ static void ATCReadAnalogInputs( int fd, unsigned char *analog_in_bytes ) { SG_LOG( SG_IO, SG_ALERT, "Read failed" ); exit( -1 ); } +#endif } // Read status of radio switches and knobs static void ATCReadRadios( int fd, unsigned char *switch_data ) { +#if defined( unix ) || defined( __CYGWIN__ ) // rewind lseek( fd, 0, SEEK_SET ); @@ -84,11 +87,13 @@ static void ATCReadRadios( int fd, unsigned char *switch_data ) { SG_LOG( SG_IO, SG_ALERT, "Read failed" ); exit( -1 ); } +#endif } // Read switch inputs static void ATCReadSwitches( int fd, unsigned char *switch_bytes ) { +#if defined( unix ) || defined( __CYGWIN__ ) // rewind lseek( fd, 0, SEEK_SET ); @@ -97,6 +102,7 @@ static void ATCReadSwitches( int fd, unsigned char *switch_bytes ) { SG_LOG( SG_IO, SG_ALERT, "Read failed" ); exit( -1 ); } +#endif }