Skip to content

Commit 65a917f

Browse files
committed
Fix build error.
1 parent 9a4b282 commit 65a917f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/CppLinuxSerial/SerialPort.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
#include <string>
1616
#include <fstream> // For file I/O (reading/writing to COM port)
1717
#include <sstream>
18-
#include <termios.h> // Required for speed_t
18+
// #include <termios.h> // This used to be included, but caused issues when variable baud rate support was added
1919
// #include <asm/termios.h> // Terminal control definitions (struct termios)
2020
#include <vector>
2121
#include <asm/ioctls.h>
22+
#include <asm/termbits.h> // Required for speed_t
2223
// uint8_t
2324
#include <cstdint>
2425

src/SerialPort.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//! See README.rst in repo root dir for more info.
99

1010
// System includes
11-
#include <asm/termbits.h>
1211
#include <iostream>
1312
#include <sstream>
1413
#include <stdio.h> // Standard input/output definitions

0 commit comments

Comments
 (0)