SDL: hidapi: netbsd's iconv expects a 'char ** restrict src'

From 83d4251540a48f50f66a1bca966025e18b82bf24 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 11 Jul 2024 13:34:34 +0200
Subject: [PATCH] hidapi: netbsd's iconv expects a 'char ** restrict src'

---
 src/hidapi/netbsd/hid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hidapi/netbsd/hid.c b/src/hidapi/netbsd/hid.c
index d804ed94923cb..82f34d4d1ce08 100644
--- a/src/hidapi/netbsd/hid.c
+++ b/src/hidapi/netbsd/hid.c
@@ -1060,7 +1060,7 @@ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index
 	struct usb_string_desc usd;
 	usb_string_descriptor_t *str;
 	iconv_t ic;
-	const char *src;
+	char *src;
 	size_t srcleft;
 	char *dst;
 	size_t dstleft;
@@ -1104,7 +1104,7 @@ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index
 		return -1;
 	}
 
-	src = (const char *) str->bString;
+	src = (char *) str->bString;
 	srcleft = str->bLength - 2;
 	dst = (char *) string;
 	dstleft = sizeof(wchar_t[maxlen]);