kumquat-buildroot/package/libserial/libserial-0002-add-missing-header-include.patch
Simon Dawson 85ffab5749 libserial: new package
Note that the Python binding is disabled; we can't build this in Buildroot
without the sipconfig Python module for the host.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-04-23 20:37:42 +02:00

16 lines
447 B
Diff

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>