projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make strlcpy available in folly
[folly.git]
/
folly
/
String.h
diff --git
a/folly/String.h
b/folly/String.h
index ef0ef3f6374ff70ce0ba5b5a324e880eee3e25a6..9ce4be650861b941096b2af70373079931a8d64d 100644
(file)
--- a/
folly/String.h
+++ b/
folly/String.h
@@
-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