From 163cc1d59457e2560c199bb0847b62a9b7868d94 Mon Sep 17 00:00:00 2001 From: John Hay Date: Sat, 14 Jan 2012 16:50:08 +0000 Subject: Make nqc compile on FreeBSD 8 and later. PR: 163844 Submitted by: Jason Bacon --- .../extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lang/nqc/files/extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp (limited to 'lang/nqc/files') diff --git a/lang/nqc/files/extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp b/lang/nqc/files/extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp new file mode 100644 index 000000000000..2a4424f49261 --- /dev/null +++ b/lang/nqc/files/extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp @@ -0,0 +1,29 @@ +--- rcxlib/RCX_USBTowerPipe_fbsd.cpp.orig 2012-01-05 18:08:27.000000000 -0600 ++++ rcxlib/RCX_USBTowerPipe_fbsd.cpp 2012-01-05 18:13:13.000000000 -0600 +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + + #include "RCX_Pipe.h" + +@@ -308,15 +309,15 @@ + return -1; + } + iov = 1; +- err = ioctl(fdRd, USB_SET_SHORT_XFER, &iov); ++ err = ioctl(fdRd, USB_SET_RX_SHORT_XFER, &iov); + if (fdRd == -1) { +- perror("ioctl USB_SET_SHORT_XFER"); ++ perror("ioctl USB_SET_RX_SHORT_XFER"); + return -1; + } + iov = 5000; +- err = ioctl(fdRd, USB_SET_TIMEOUT, &iov); ++ err = ioctl(fdRd, USB_SET_RX_TIMEOUT, &iov); + if (fdRd == -1) { +- perror("ioctl USB_SET_TIMEOUT"); ++ perror("ioctl USB_SET_RX_TIMEOUT"); + return -1; + } -- cgit v1.2.3