summaryrefslogtreecommitdiff
path: root/comms/librs232/files/patch-rs232.h
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2014-12-04 06:49:58 +0000
committerKevin Lo <kevlo@FreeBSD.org>2014-12-04 06:49:58 +0000
commit376d25ce440efcc37939559a0596dab3a830cb1f (patch)
tree95a36893a1dacd873ade8301742d6a73e343d5a6 /comms/librs232/files/patch-rs232.h
parent- Unbreak build (diff)
Import librs232.
Librs232 is a library which provides common interface to rs232 serial interface communication.
Diffstat (limited to 'comms/librs232/files/patch-rs232.h')
-rw-r--r--comms/librs232/files/patch-rs232.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/comms/librs232/files/patch-rs232.h b/comms/librs232/files/patch-rs232.h
new file mode 100644
index 000000000000..81c40ed93dc3
--- /dev/null
+++ b/comms/librs232/files/patch-rs232.h
@@ -0,0 +1,12 @@
+--- rs232.h.orig 2014-12-04 14:17:08.000000000 +0800
++++ rs232.h 2014-12-04 14:17:22.000000000 +0800
+@@ -45,8 +45,7 @@
+ #include <string.h>
+
+
+-
+-#ifdef __linux__
++#if defined(__linux__) || defined(__FreeBSD__)
+
+ #include <termios.h>
+ #include <sys/ioctl.h>