From 898f4d3f084fc9553b92956da04019af90a4f872 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 17 Jun 2015 13:59:54 -0400 Subject: Check libuv version semver-ishly Fixes https://github.com/mapbox/node-mapbox-gl-native/issues/137 --- src/mbgl/util/uv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.1