diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 546beeaa34..db76a47c8f 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -5237,6 +5237,33 @@ Parser::checkExportedName(JSAtom* exportName) return false; } +// Because all these template methods call each other, let's declare them first before +// defining them to prevent a GCC compiler error in specialization of member function +// template after instantiation. +template<> +bool +Parser::checkExportedNamesForDeclaration(ParseNode* node); + +template<> +bool +Parser::checkExportedNamesForDeclaration(Node node); + +template<> +bool +Parser::checkExportedNamesForArrayBinding(ListNode* array); + +template<> +inline bool +Parser::checkExportedNamesForArrayBinding(ListNodeType array); + +template<> +bool +Parser::checkExportedNamesForObjectBinding(ListNode* obj); + +template<> +inline bool +Parser::checkExportedNamesForObjectBinding(ListNodeType obj); + template<> bool Parser::checkExportedNamesForArrayBinding(ListNode* array) diff --git a/media/mtransport/third_party/nICEr/src/stun/stun.h b/media/mtransport/third_party/nICEr/src/stun/stun.h index 8e5a607505..0a415d38c0 100644 --- a/media/mtransport/third_party/nICEr/src/stun/stun.h +++ b/media/mtransport/third_party/nICEr/src/stun/stun.h @@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #ifndef LINUX #include -#if !defined(__OpenBSD__) && !defined(__NetBSD__) +#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) #include #endif #include