folly/portability/Constexpr.h: add missing include statement
[folly.git] / folly / portability / Constexpr.h
index 810f987a70865abb000f923453ab799fe90a1da8..7ea46300491057d5fdddbdd95fa1c4ba2e4dab28 100755 (executable)
@@ -18,6 +18,7 @@
 #define FOLLY_CONSTEXPR_H_
 
 #include <cstdint>
+#include <cstring>
 
 namespace folly {
 
@@ -45,7 +46,7 @@ constexpr size_t constexpr_strlen(const char* s) {
 #elif defined(_MSC_VER)
   return s == nullptr ? 0 : constexpr_strlen_internal(s, 0);
 #else
-  return strlen(s);
+  return std::strlen(s);
 #endif
 }
 }