File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
ObjectContainer/BSD-Archive Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -730,9 +730,19 @@ ConnectionStatus ConnectionFileDescriptor::ConnectFile(
730730 struct termios options;
731731 ::tcgetattr (fd, &options);
732732
733- // Set port speed to maximum
733+ // Set port speed to the available maximum
734+ #ifdef B115200
734735 ::cfsetospeed (&options, B115200);
735736 ::cfsetispeed (&options, B115200);
737+ #elif B57600
738+ ::cfsetospeed (&options, B57600);
739+ ::cfsetispeed (&options, B57600);
740+ #elif B38400
741+ ::cfsetospeed (&options, B38400);
742+ ::cfsetispeed (&options, B38400);
743+ #else
744+ #error "Maximum Baud rate is Unknown"
745+ #endif
736746
737747 // Raw input, disable echo and signals
738748 options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
Original file line number Diff line number Diff line change @@ -1226,7 +1226,7 @@ bool lldb_private::formatters::ObjCSELSummaryProvider(
12261226time_t lldb_private::formatters::GetOSXEpoch () {
12271227 static time_t epoch = 0 ;
12281228 if (!epoch) {
1229- #ifndef _WIN32
1229+ #if !defined( _WIN32) && !defined(_AIX)
12301230 tzset ();
12311231 tm tm_epoch;
12321232 tm_epoch.tm_sec = 0 ;
Original file line number Diff line number Diff line change 88
99#include " ObjectContainerBSDArchive.h"
1010
11- #if defined(_WIN32) || defined(__ANDROID__)
11+ #if defined(_WIN32) || defined(__ANDROID__) || defined(_AIX)
1212// Defines from ar, missing on Windows
1313#define SARMAG 8
1414#define ARFMAG " `\n "
You can’t perform that action at this time.
0 commit comments