Add missing include of pthread.h
This presumably worked before because some libc++ header included it
transitively, but that's no longer the case.
Bug: chromium:1423839
Change-Id: I6ed1c3474c1bfa02084a665c0b9e249484ac50d7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/297420
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Auto-Submit: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#39544}
diff --git a/rtc_base/platform_thread.h b/rtc_base/platform_thread.h
index 3ab2761..befd618 100644
--- a/rtc_base/platform_thread.h
+++ b/rtc_base/platform_thread.h
@@ -13,6 +13,9 @@
#include <functional>
#include <string>
+#if !defined(WEBRTC_WIN)
+#include <pthread.h>
+#endif
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"