From 00b8fe97de3ac948f666e281dc031977caaae334 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Wed, 29 Dec 2021 20:52:56 +0100
Subject: [PATCH] Solved a bug in the serial library: moved the #include
 <asm/termbits.h> header to the source file to avoid possible conflicts with
 other libraries using other termios headers.

---
 include/serial/rs232.h | 1 -
 src/serial/rs232.cpp   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/serial/rs232.h b/include/serial/rs232.h
index f8921ba..fe70247 100644
--- a/include/serial/rs232.h
+++ b/include/serial/rs232.h
@@ -6,7 +6,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#include <asm/termbits.h>
 #include <unistd.h>  
 #include <fcntl.h>
 #include <errno.h>
diff --git a/src/serial/rs232.cpp b/src/serial/rs232.cpp
index 9bf6cb9..7dca545 100644
--- a/src/serial/rs232.cpp
+++ b/src/serial/rs232.cpp
@@ -1,6 +1,7 @@
 #include "rs232.h"
 #include "rs232exceptions.h"
 #include "ctime.h"
+#include <asm/termbits.h>
 
 CRS232::CRS232(const std::string& comm_id) : CComm(comm_id)
 {
-- 
GitLab