head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.07.23.13.33.41; author ryoon; state Exp; branches; next ; commitid LZUdywAvdEiMvMOG; desc @@ 1.1 log @www/firefox: Fix segfault during audio playback * Bump PKGREVISION. @ text @$NetBSD$ * If CLOCK_BOOTTIME is not available, return 0 instead of Nothing(). This fixes incorrect assert at AudioSessionManager.cpp:57 introduced in 153.0. --- mozglue/misc/Now.cpp.orig 2026-07-23 01:36:06.678846874 +0000 +++ mozglue/misc/Now.cpp @@@@ -89,16 +89,13 @@@@ Maybe NowIncludingSuspendMs() { } Maybe NowIncludingSuspendMs() { -# ifndef CLOCK_BOOTTIME - return Nothing(); -# else struct timespec ts = {0}; - +# ifdef CLOCK_BOOTTIME if (clock_gettime(CLOCK_BOOTTIME, &ts)) { return Nothing(); } - return Some(TimespecToMilliseconds(ts)); # endif + return Some(TimespecToMilliseconds(ts)); } #else // catch all @