3 --- third_party/WebKit/Source/WebCore/bindings/v8/V8Proxy.cpp.orig 2011-04-13 08:12:33.000000000 +0000
4 +++ third_party/WebKit/Source/WebCore/bindings/v8/V8Proxy.cpp
5 @@ -812,7 +812,34 @@ int V8Proxy::contextDebugId(v8::Handle<v
6 if (!context->GetData()->IsString())
8 v8::String::AsciiValue ascii(context->GetData());
9 +#if defined(OS_NETBSD)
10 + const char *s = *ascii;
11 + const char *find = ",";
12 + size_t flen, len = ascii.length();
14 + char *comma = (char *)s;
16 + if ((c = *find++) != '\0') {
17 + flen = strlen(find);
20 + if (len-- < 1 || (sc = *s++) == '\0') {
29 + } while (strncmp(s, find, flen) != 0);
35 char* comma = strnstr(*ascii, ",", ascii.length());
39 return atoi(comma + 1);