From: Kamil Rytarowski <n54@gmx.com>
To: kraxel@redhat.com
Cc: qemu-devel@nongnu.org, Kamil Rytarowski <n54@gmx.com>
Subject: [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX
Date: Sun, 3 Sep 2017 18:34:55 +0200 [thread overview]
Message-ID: <20170903163455.15132-1-n54@gmx.com> (raw)
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
next reply other threads:[~2017-09-03 16:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-03 16:34 Kamil Rytarowski [this message]
2017-09-04 0:35 ` [Qemu-devel] [PATCH] usb-mtp: Add fallback definition of NAME_MAX 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170903163455.15132-1-n54@gmx.com \
--to=n54@gmx.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).