Make strlcpy available in folly
[folly.git] / folly / String.h
index ef0ef3f6374ff70ce0ba5b5a324e880eee3e25a6..9ce4be650861b941096b2af70373079931a8d64d 100644 (file)
@@ -569,6 +569,9 @@ inline void toLowerAscii(MutableStringPiece str) {
   toLowerAscii(str.begin(), str.size());
 }
 
+// glibc doesn't have strlcpy
+size_t strlcpy(char* dest, const char* const src, size_t size);
+
 } // namespace folly
 
 // Hook into boost's type traits