mirror of
https://github.com/Fishwaldo/open-zwave.git
synced 2025-07-10 06:58:53 +00:00
Add missing #ifdef __NetBSD__ for a platform specific cast
This commit is contained in:
parent
ca05e19310
commit
0e01a1053f
1 changed files with 4 additions and 0 deletions
|
@ -369,7 +369,11 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
|
|||
inbytes = len-2;
|
||||
outptr = (char*) wbuf;
|
||||
outbytes = sizeof(wbuf);
|
||||
#ifdef __NetBSD__
|
||||
res = iconv(ic, (const char ** restrict)&inptr, &inbytes, &outptr, &outbytes);
|
||||
#else
|
||||
res = iconv(ic, &inptr, &inbytes, &outptr, &outbytes);
|
||||
#endif
|
||||
if (res == (size_t)-1) {
|
||||
LOG("iconv() failed\n");
|
||||
goto err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue