diff --git a/webrtc/base/criticalsection.h b/webrtc/base/criticalsection.h index 84c488ba8..3a1f6a4ec 100644 --- a/webrtc/base/criticalsection.h +++ b/webrtc/base/criticalsection.h @@ -15,7 +15,12 @@ #include "webrtc/base/thread_annotations.h" #if defined(WEBRTC_WIN) -#include "webrtc/base/win32.h" +// Include winsock2.h before including to maintain consistency with +// win32.h. We can't include win32.h directly here since it pulls in +// headers such as basictypes.h which causes problems in Chromium where webrtc +// exists as two separate projects, webrtc and libjingle. +#include +#include #endif #if defined(WEBRTC_POSIX)