summaryrefslogtreecommitdiff
path: root/host/ausb
diff options
context:
space:
mode:
Diffstat (limited to 'host/ausb')
-rw-r--r--host/ausb/ausb.h3
-rw-r--r--host/ausb/usb.c1
-rw-r--r--host/ausb/usb.h5
3 files changed, 9 insertions, 0 deletions
diff --git a/host/ausb/ausb.h b/host/ausb/ausb.h
index 4d62cac..96247bb 100644
--- a/host/ausb/ausb.h
+++ b/host/ausb/ausb.h
@@ -9,6 +9,9 @@
* Distributed under the terms of GNU LGPL, Version 2.1
*/
+#ifndef __user
+#define __user
+#endif/*__user*/
#include <usb.h>
#include <linux/usbdevice_fs.h>
diff --git a/host/ausb/usb.c b/host/ausb/usb.c
index 1f1078d..1d3aaf4 100644
--- a/host/ausb/usb.c
+++ b/host/ausb/usb.c
@@ -4,6 +4,7 @@
#include <errno.h>
#include <usb.h>
#include <sys/ioctl.h>
+#include "usb.h"
#include <linux/usbdevice_fs.h>
#define MAX_READ_WRITE 4096
diff --git a/host/ausb/usb.h b/host/ausb/usb.h
index 66be0ee..979d30c 100644
--- a/host/ausb/usb.h
+++ b/host/ausb/usb.h
@@ -1,5 +1,10 @@
#ifndef _AUSB_USB_H
#define _AUSB_USB_H
+
+#ifndef __user
+#define __user
+#endif/*__user*/
+
int __usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int length,
int timeout);
int __usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int length,
personal git repositories of Harald Welte. Your mileage may vary