diff --git a/dom/webauthn/U2FTokenManager.cpp b/dom/webauthn/U2FTokenManager.cpp index f5966d46782f..91dd112cfdee 100644 --- a/dom/webauthn/U2FTokenManager.cpp +++ b/dom/webauthn/U2FTokenManager.cpp @@ -16,7 +16,7 @@ #include "mozilla/Unused.h" #include "nsTextFormatter.h" -#ifdef ANDROID +#ifdef MOZ_WIDGET_ANDROID # include "mozilla/dom/AndroidWebAuthnTokenManager.h" #endif @@ -268,7 +268,7 @@ RefPtr U2FTokenManager::GetTokenManagerImpl() { auto pm = U2FPrefManager::Get(); -#ifdef ANDROID +#ifdef MOZ_WIDGET_ANDROID // On Android, prefer the platform support if enabled. if (pm->GetAndroidFido2Enabled()) { return AndroidWebAuthnTokenManager::GetInstance(); diff --git a/dom/webauthn/moz.build b/dom/webauthn/moz.build index 0def39385cf5..398e94cf719a 100644 --- a/dom/webauthn/moz.build +++ b/dom/webauthn/moz.build @@ -63,7 +63,7 @@ LOCAL_INCLUDES += [ '/security/manager/ssl', ] -if CONFIG['OS_TARGET'] == 'Android': +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': EXPORTS.mozilla.dom += [ 'AndroidWebAuthnTokenManager.h', ]