summaryrefslogtreecommitdiffstats
path: root/package/libserial/libserial-0002-add-missing-header-include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libserial/libserial-0002-add-missing-header-include.patch')
-rw-r--r--package/libserial/libserial-0002-add-missing-header-include.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/libserial/libserial-0002-add-missing-header-include.patch b/package/libserial/libserial-0002-add-missing-header-include.patch
new file mode 100644
index 000000000..a0226372b
--- /dev/null
+++ b/package/libserial/libserial-0002-add-missing-header-include.patch
@@ -0,0 +1,15 @@
+Add a missing header include, to fix a build error.
+
+Signed-off-by: Simon Dawson <spdawson@gmail.com>
+
+diff -Nurp a/src/SerialPort.cpp b/src/SerialPort.cpp
+--- a/src/SerialPort.cpp 2008-11-12 01:27:30.000000000 +0000
++++ b/src/SerialPort.cpp 2013-04-23 15:43:41.537495852 +0100
+@@ -27,6 +27,7 @@
+ #include <cassert>
+ #include <termios.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
+ #include <signal.h>