diff --git a/intl/locale/tests/gtest/TestOSPreferences.cpp b/intl/locale/tests/gtest/TestOSPreferences.cpp
index e98bf25025024b539e6d188d03833b758aa0bc00..7e3b71582b12060ced6bd4b2aea6addeb61646a3 100644
--- a/intl/locale/tests/gtest/TestOSPreferences.cpp
+++ b/intl/locale/tests/gtest/TestOSPreferences.cpp
@@ -7,6 +7,7 @@
 #include "mozilla/ArrayUtils.h"
 #include "mozilla/gtest/MozAssertions.h"
 #include "mozilla/Preferences.h"
+#include "mozilla/intl/LocaleService.h"
 #include "mozilla/intl/OSPreferences.h"
 
 using namespace mozilla::intl;
diff --git a/intl/locale/tests/gtest/moz.build b/intl/locale/tests/gtest/moz.build
index 79f0326cbe5a1784809d13bb0fb22debb2b53e98..bd2a2b8f86e682649132439ab3984eb30282a964 100644
--- a/intl/locale/tests/gtest/moz.build
+++ b/intl/locale/tests/gtest/moz.build
@@ -12,5 +12,3 @@ UNIFIED_SOURCES += [
 ]
 
 FINAL_LIBRARY = "xul-gtest"
-
-REQUIRES_UNIFIED_BUILD = True