AP_HAL_SITL: fix compile error for Windows/Cygwin builds

termios2 not available on cygwin. This needs a re-think for cygwin. For now let's just hide it by letting it be declared empty by the virtual and totally bypass it in the cygwin build.
This commit is contained in:
Tom Pittenger 2017-11-30 12:17:49 -08:00
parent 013035a4da
commit 6bdbe53024
2 changed files with 4 additions and 4 deletions

View File

@ -61,9 +61,9 @@ public:
enum flow_control get_flow_control(void) { return FLOW_CONTROL_ENABLE; }
virtual bool set_speed(int speed);
virtual void configure_parity(uint8_t v);
virtual void set_stop_bits(int n);
virtual bool set_speed(int speed) { return true; }
virtual void configure_parity(uint8_t v) { }
virtual void set_stop_bits(int n) { }
bool set_unbuffered_writes(bool on);
void _timer_tick(void);

View File

@ -15,7 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL && !defined(__CYGWIN__)
#include "UARTDriver.h"