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(
730
730
struct termios options;
731
731
::tcgetattr (fd, &options);
732
732
733
- // Set port speed to maximum
733
+ // Set port speed to the available maximum
734
+ #ifdef B115200
734
735
::cfsetospeed (&options, B115200);
735
736
::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
736
746
737
747
// Raw input, disable echo and signals
738
748
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(
1226
1226
time_t lldb_private::formatters::GetOSXEpoch () {
1227
1227
static time_t epoch = 0 ;
1228
1228
if (!epoch) {
1229
- #ifndef _WIN32
1229
+ #if !defined( _WIN32) && !defined(_AIX)
1230
1230
tzset ();
1231
1231
tm tm_epoch;
1232
1232
tm_epoch.tm_sec = 0 ;
Original file line number Diff line number Diff line change 8
8
9
9
#include " ObjectContainerBSDArchive.h"
10
10
11
- #if defined(_WIN32) || defined(__ANDROID__)
11
+ #if defined(_WIN32) || defined(__ANDROID__) || defined(_AIX)
12
12
// Defines from ar, missing on Windows
13
13
#define SARMAG 8
14
14
#define ARFMAG " `\n "
You can’t perform that action at this time.
0 commit comments