head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2026.01.11.14.15.04; author rhialto; state Exp; branches; next ; commitid QPr6gV4VgHqAWYpG; desc @@ 1.1 log @emulators/vice: update to 3.10 changes: many. The full list is at http://vice-emu.sourceforge.io/NEWS . @ text @$NetBSD$ NetBSD's pthread_setname_np() has 3 arguments. --- src/lib/libusbsiddrv/USBSID.cpp.orig 2025-12-25 21:07:32.102050718 +0000 +++ src/lib/libusbsiddrv/USBSID.cpp @@@@ -619,7 +619,9 @@@@ unsigned char USBSID_Class::USBSID_Read( void* USBSID_Class::USBSID_Thread(void) { /* Only starts when threaded == true */ USBDBG(stdout, "[USBSID] Thread starting\r\n"); - #ifdef _GNU_SOURCE + #if defined(__NetBSD__) + pthread_setname_np(pthread_self(), "USBSID Thread", NULL); + #elif defined(_GNU_SOURCE) pthread_setname_np(pthread_self(), "USBSID Thread"); #endif pthread_detach(pthread_self()); @