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

Unified Diff: third_party/talloc/talloc.c

Issue 10832045: Change talloc.c to build with the mac 10.7 SDK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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
« third_party/talloc/chromium.patch ('K') | « third_party/talloc/chromium.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/talloc/talloc.c
diff --git a/third_party/talloc/talloc.c b/third_party/talloc/talloc.c
index ecf625a6fa2836da330b297fbccbe8bdf034bdd3..4bcd65d18bb24ecc9f88c843a1236e470c006fdb 100644
--- a/third_party/talloc/talloc.c
+++ b/third_party/talloc/talloc.c
@@ -1594,7 +1594,8 @@ char *talloc_strdup(const void *t, const char *p)
}
#ifndef HAVE_STRNLEN
-static size_t strnlen(const char* s, size_t n)
+#define strnlen rep_strnlen
+static size_t rep_strnlen(const char* s, size_t n)
{
if (unlikely(!s)) return 0;
int i = 0;
« third_party/talloc/chromium.patch ('K') | « third_party/talloc/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698