qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX
Date: Sun, 3 Sep 2017 21:35:29 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi Kamil,

On 09/03/2017 01:34 PM, Kamil Rytarowski wrote:
This fixes build on SmartOS (Joyent).

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

Signed-off-by: Kamil Rytarowski <address@hidden>
---
  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

this belongs to include/qemu/osdep.h

once moved there:
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>

+
  /* ----------------------------------------------------------------------- */
enum mtp_container_type {


Regards,

Phil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]