Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: src/platform-freebsd.cc

Issue 13093: Fixed d8 on leopard. (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform-freebsd.cc
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc
index 75140c99850860ad43696688c7fe5c493cf9e3ed..d7b3223a49139354263e6a847ab6ba84b6493de2 100644
--- a/src/platform-freebsd.cc
+++ b/src/platform-freebsd.cc
@@ -194,6 +194,11 @@ char *OS::StrDup(const char* str) {
}
+char* OS::StrNDup(const char* str, size_t n) {
+ return strndup(str, n);
+}
+
+
double OS::nan_value() {
return NAN;
}

Powered by Google App Engine
This is Rietveld 408576698