1diff --git a/libchrome/base/hash/md5_nacl.cc b/libchrome/base/hash/md5_nacl.cc
2index 7de4b43520..d540b24642 100644
3--- a/libchrome/base/hash/md5_nacl.cc
4+++ b/libchrome/base/hash/md5_nacl.cc
5@@ -22,6 +22,7 @@
6  */
7
8 #include <stddef.h>
9+#include <string.h>
10
11 #include "base/hash/md5.h"
12
13diff --git a/libchrome/crypto/p224_spake.cc b/libchrome/crypto/p224_spake.cc
14index 09f179b24a..9f651de0cf 100644
15--- a/libchrome/crypto/p224_spake.cc
16+++ b/libchrome/crypto/p224_spake.cc
17@@ -8,6 +8,7 @@
18 #include <crypto/p224_spake.h>
19
20 #include <algorithm>
21+#include <string.h>
22
23 #include <base/logging.h>
24 #include <crypto/p224.h>
25
26diff --git a/libchrome/base/functional/function_ref.h b/libchrome/base/functional/function_ref.h
27index d6442d3532..6dc03da85c 100644
28--- a/libchrome/base/functional/function_ref.h
29+++ b/libchrome/base/functional/function_ref.h
30@@ -5,6 +5,8 @@
31 #ifndef BASE_FUNCTIONAL_FUNCTION_REF_H_
32 #define BASE_FUNCTIONAL_FUNCTION_REF_H_
33
34+#include <limits>
35+
36 #include <type_traits>
37 #include <utility>
38
39diff --git a/libchrome/base/memory/ref_counted.h b/libchrome/base/memory/ref_counted.h
40index 9ef94d8476..f70e30748a 100644
41--- a/libchrome/base/memory/ref_counted.h
42+++ b/libchrome/base/memory/ref_counted.h
43@@ -7,6 +7,7 @@
44
45 #include <stddef.h>
46
47+#include <limits>
48 #include <utility>
49
50 #include "base/atomic_ref_count.h"
51