blob: 6358e81a2bac5e7f8fadd96d53521113c947013d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-hw_usb_dev-mtp.c,v 1.2 2018/08/16 10:15:09 adam Exp $
Support NAME_MAX.
--- hw/usb/dev-mtp.c.orig 2018-08-14 19:10:34.000000000 +0000
+++ hw/usb/dev-mtp.c
@@ -26,6 +26,10 @@
#include "hw/usb.h"
#include "desc.h"
+#ifndef NAME_MAX
+#define NAME_MAX 255
+#endif
+
/* ----------------------------------------------------------------------- */
enum mtp_container_type {
|