diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 4a7bb6a10829893385501e00305b3b974d00d14a..d896e1f7db207ac50266e5aa145ee7f1b2a867da 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -1810,7 +1810,7 @@ bool LLVOVolume::hasMediaPermission(const LLMediaEntry* media_entry, MediaPermTy
         return true;
     }
     
-    U8 media_perms = (perm_type == INTERACT) ? media_entry->getPermsInteract() : media_entry->getPermsControl();
+    U8 media_perms = (perm_type == MEDIA_PERM_INTERACT) ? media_entry->getPermsInteract() : media_entry->getPermsControl();
     
     // World permissions
     if (0 != (media_perms & LLMediaEntry::PERM_ANYONE)) 
@@ -1855,7 +1855,7 @@ void LLVOVolume::mediaNavigated(LLViewerMediaImpl *impl, LLPluginClassMedia* plu
 		{
 			block_navigation = true;
 		}
-		if (!block_navigation && !hasMediaPermission(mep, INTERACT))
+		if (!block_navigation && !hasMediaPermission(mep, MEDIA_PERM_INTERACT))
 		{
 			block_navigation = true;
 		}
diff --git a/indra/newview/llvovolume.h b/indra/newview/llvovolume.h
index e4a6ec4b32007fd53473bcca4f7cddaf28168f12..00810b22c4d62655cd28d815f97d7594258af396 100644
--- a/indra/newview/llvovolume.h
+++ b/indra/newview/llvovolume.h
@@ -245,7 +245,7 @@ class LLVOVolume : public LLViewerObject
     // Returns whether or not this object has permission to navigate or control 
 	// the given media entry
 	enum MediaPermType {
-		INTERACT, CONTROL
+		MEDIA_PERM_INTERACT, MEDIA_PERM_CONTROL
 	};
     bool hasMediaPermission(const LLMediaEntry* media_entry, MediaPermType perm_type);