diff --git a/indra/llcommon/lltimer.cpp b/indra/llcommon/lltimer.cpp
index 60c7ef65585551ad1273c2e4b448de34bc84d104..a8be264e470056202ae56489fe211fd185699074 100644
--- a/indra/llcommon/lltimer.cpp
+++ b/indra/llcommon/lltimer.cpp
@@ -75,11 +75,12 @@ void ms_sleep(U32 ms)
 	std::this_thread::sleep_for(std::chrono::milliseconds(ms));
 }
 
-void micro_sleep(U64 us, U32 max_yields)
+U32 micro_sleep(U64 us, U32 max_yields)
 {
     // max_yields is unused; just fiddle with it to avoid warnings.
     max_yields = 0;
 	std::this_thread::sleep_for(std::chrono::microseconds(us));
+	return 0;
 }
 
 #elif LL_WINDOWS
diff --git a/indra/llrender/llglslshader.h b/indra/llrender/llglslshader.h
index 5838aef8a92607676239c97e374b024dcaea33ca..80559db9617ddd49402c76c7d6a37ad97502e89d 100644
--- a/indra/llrender/llglslshader.h
+++ b/indra/llrender/llglslshader.h
@@ -311,7 +311,7 @@ class LLGLSLShader
     LLShaderFeatures mFeatures;
     std::vector< std::pair< std::string, GLenum > > mShaderFiles;
     std::string mName;
-    typedef std::map<std::string, std::string> defines_map_t;
+    typedef std::map<std::string, std::string> defines_map_t; //NOTE: this must be an ordered map to maintain hash consistency
     defines_map_t mDefines;
     static defines_map_t sGlobalDefines;
     LLUUID mShaderHash;