Files
Chun-Min Chang 1c3883b9df Bug 2043098 - Re-add missing_header.patch for EBUSY on mingw r=media-playback-reviewers,padenot
libvpx rev ab83db61 re-introduced pthread_mutex_trylock (which returns
EBUSY) without restoring the <errno.h> include that had been removed
alongside the previous trylock implementation in rev 40561f51. On
MinGW, EBUSY is not reachable transitively, causing the build bustage.

Restore the local patch from Bug 1886318 so future libvpx updates
re-apply it automatically.

Differential Revision: https://phabricator.services.mozilla.com/D303114
2026-05-28 21:18:41 +00:00

13 lines
326 B
Diff

Add missing header for EBUSY
--- a/vpx_util/vpx_pthread.h
+++ b/vpx_util/vpx_pthread.h
@@ -26,6 +26,7 @@ extern "C" {
#define NOMINMAX
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
+#include <errno.h> // NOLINT
#include <process.h> // NOLINT
#include <stddef.h> // NOLINT
#include <windows.h> // NOLINT