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
13 lines
326 B
Diff
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
|