X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fserial%2Fserial.cxx;h=405e9b04c76f2f2162e8d3ab64f6283868544669;hb=18703ce02d64e0d696404e1a441ec9ce1e9a673a;hp=3c24f87789559a4791fe198325da5119161b1a2b;hpb=b2a7975493f8b142e2b797a7b48946311c756dd5;p=simgear.git diff --git a/simgear/serial/serial.cxx b/simgear/serial/serial.cxx index 3c24f877..405e9b04 100644 --- a/simgear/serial/serial.cxx +++ b/simgear/serial/serial.cxx @@ -2,7 +2,7 @@ // // Written by Curtis Olson, started November 1998. // -// Copyright (C) 1998 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 1998 Curtis L. Olson - http://www.flightgear.org/~curt // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -129,7 +129,7 @@ bool SGSerialPort::open_port(const string& device) { // config.c_cflag |= CLOCAL; -#if ! defined( sgi ) +#if !defined( sgi ) && !defined(_AIX) // disable hardware flow control config.c_cflag &= ~(CRTSCTS); #endif @@ -234,11 +234,11 @@ bool SGSerialPort::set_baud(int baud) { speed = B19200; } else if ( baud == 38400 ) { speed = B38400; +#if defined( linux ) || defined( __FreeBSD__ ) } else if ( baud == 57600 ) { speed = B57600; } else if ( baud == 115200 ) { speed = B115200; -#if defined( linux ) || defined( __FreeBSD__ ) } else if ( baud == 230400 ) { speed = B230400; #endif