Skip to content

Commit

Permalink
Fixing failed build for dlt-daemon in Linux Sparc (#683)
Browse files Browse the repository at this point in the history
Some serial definitions is not valid in Linux Spac

Signed-off-by: Le Tin <[email protected]>
  • Loading branch information
lti9hc authored Oct 9, 2024
1 parent 4f52d05 commit beb8958
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shared/dlt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2971,26 +2971,34 @@ speed_t dlt_convert_serial_speed(int baudrate)
ret = B2000000;
break;
}
#ifdef B2500000
case 2500000:
{
ret = B2500000;
break;
}
#endif
#ifdef B3000000
case 3000000:
{
ret = B3000000;
break;
}
#endif
#ifdef B3500000
case 3500000:
{
ret = B3500000;
break;
}
#endif
#ifdef B4000000
case 4000000:
{
ret = B4000000;
break;
}
#endif
# endif /* __linux__ */
default:
{
Expand Down

0 comments on commit beb8958

Please sign in to comment.