[rtems-libbsd commit] Fix USB_DEBUG redefinition warnings
Sebastian Huber
sebh at rtems.org
Wed May 15 13:45:12 UTC 2019
Module: rtems-libbsd
Branch: 5-freebsd-12
Commit: f6075e18371f4c3e4d1f2b866661d6fea503e125
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=f6075e18371f4c3e4d1f2b866661d6fea503e125
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 13 11:14:21 2019 +0200
Fix USB_DEBUG redefinition warnings
---
freebsd/sys/dev/usb/usb_debug.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/freebsd/sys/dev/usb/usb_debug.h b/freebsd/sys/dev/usb/usb_debug.h
index 87c0dcf..9f7ff21 100644
--- a/freebsd/sys/dev/usb/usb_debug.h
+++ b/freebsd/sys/dev/usb/usb_debug.h
@@ -73,6 +73,18 @@ extern unsigned int usb_resume_wait;
extern unsigned int usb_resume_recovery;
extern unsigned int usb_extra_power_up_time;
#else
+#ifdef __rtems__
+#undef usb_port_reset_delay
+#undef usb_port_root_reset_delay
+#undef usb_port_reset_recovery
+#undef usb_port_powerup_delay
+#undef usb_port_resume_delay
+#undef usb_set_address_settle
+#undef usb_resume_delay
+#undef usb_resume_wait
+#undef usb_resume_recovery
+#undef usb_extra_power_up_time
+#endif /* __rtems__ */
#define usb_port_reset_delay USB_PORT_RESET_DELAY
#define usb_port_root_reset_delay USB_PORT_ROOT_RESET_DELAY
#define usb_port_reset_recovery USB_PORT_RESET_RECOVERY
More information about the vc
mailing list