From 02f3747734d772d570f88c7de3d352a84b52c857 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 25 Jan 2020 00:40:51 +0000 Subject: [PATCH] Bug 1611536 - Add stdint.h include for fixed-width integer types r=Ehsan musl libc does not define these types through the other headers included by this file, which causes errors when building RemoteUtils.cpp (which indirectly includes nsCharTraits.h): error: unknown type name 'int32_t' Differential Revision: https://phabricator.services.mozilla.com/D61040 --HG-- extra : moz-landing-system : lando --- xpcom/string/nsCharTraits.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xpcom/string/nsCharTraits.h b/xpcom/string/nsCharTraits.h index 64794abea57f..9941d4996d4b 100644 --- a/xpcom/string/nsCharTraits.h +++ b/xpcom/string/nsCharTraits.h @@ -8,6 +8,7 @@ #define nsCharTraits_h___ #include // for |EOF|, |WEOF| +#include // for |uint32_t| #include // for |memcpy|, et al #include "mozilla/MemoryChecking.h"