qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX
@ 2017-09-03 16:34 Kamil Rytarowski
  2017-09-04  0:35 ` Philippe Mathieu-Daudé
  2017-09-04 17:25 ` [Qemu-devel] [PATCH v2] " Kamil Rytarowski
  0 siblings, 2 replies; 5+ messages in thread
From: Kamil Rytarowski @ 2017-09-03 16:34 UTC (permalink / raw)
  To: kraxel; +Cc: qemu-devel, Kamil Rytarowski

This fixes build on SmartOS (Joyent).

Patch cherry-picked from pkgsrc by jperkin (Joyent).

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
---
 hw/usb/dev-mtp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c
index 94c2e94f10..6e8d7b21b5 100644
--- a/hw/usb/dev-mtp.c
+++ b/hw/usb/dev-mtp.c
@@ -26,6 +26,10 @@
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 
+#ifndef NAME_MAX
+#define NAME_MAX 255
+#endif
+
 /* ----------------------------------------------------------------------- */
 
 enum mtp_container_type {
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-04 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-03 16:34 [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX Kamil Rytarowski
2017-09-04  0:35 ` Philippe Mathieu-Daudé
2017-09-04 17:25 ` [Qemu-devel] [PATCH v2] " Kamil Rytarowski
2017-09-04 17:50   ` Peter Maydell
2017-09-04 23:22     ` Kamil Rytarowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).