gentoo-ebuilds/net-dialup/mwavem/files/mwavem-2.0-pthread.patch
NHOrus bddf10139c
net-dialup/mwavem: update EAPI 7 -> 8, fix compilation errors
Fixes C23 problems and difference in pthread_t between musl and glibc
Included in C23 problems: Actual usage of va_args instead of handrolled
pointers, system includes, removal of redefinitions of system functions
and completion of externs with function arguments.

Closes: https://bugs.gentoo.org/897844
Closes: https://bugs.gentoo.org/715926
Closes: https://bugs.gentoo.org/945184
Closes: https://bugs.gentoo.org/921186
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40311
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-10 08:55:00 +00:00

14 lines
703 B
Diff

Use correct type for thread handle. It already uses pthread_t for other half of the
assignment
https://bugs.gentoo.org/897844
--- a/src/manager/mwaveapi.c
+++ b/src/manager/mwaveapi.c
@@ -79,7 +79,7 @@
BOOL g_bIPCSupportActive = FALSE; // True if our IPC support layer is initialized and active
unsigned g_uIPCsInUse; // One bit per IPC in use for this subsystem
BOOL g_abCancellingIPCs[MWAPI_MaxIPCs]; // TRUE if we're attempting to cancel an IPC thread
-HANDLE g_ahIPCThreads[MWAPI_MaxIPCs]; // Thread handle of IPC thread
+pthread_t g_ahIPCThreads[MWAPI_MaxIPCs]; // Thread handle of IPC thread
PFN g_pfnIPCNotice[MWAPI_MaxIPCs];
BOOL bDspDisabled = FALSE;