summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/uv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/uv.cpp b/src/mbgl/util/uv.cpp
index d76e42f67d..e36d07cc94 100644
--- a/src/mbgl/util/uv.cpp
+++ b/src/mbgl/util/uv.cpp
@@ -16,7 +16,7 @@ const static bool uvVersionCheck = []() {
const unsigned int UV_VERSION_PATCH = version & 0xFF;
#endif
- if (major != UV_VERSION_MAJOR || minor != UV_VERSION_MINOR || patch != UV_VERSION_PATCH) {
+ if (major != UV_VERSION_MAJOR || (major == 0 && minor != UV_VERSION_MINOR)) {
throw std::runtime_error(mbgl::util::sprintf<96>(
"libuv version mismatch: headers report %d.%d.%d, but library reports %d.%d.%d", UV_VERSION_MAJOR,
UV_VERSION_MINOR, UV_VERSION_PATCH, major, minor, patch));