$NetBSD: patch-af,v 1.8 2012/10/22 02:17:16 rh Exp $ --- Source/Additions/GSXML.m.orig 2012-01-09 08:28:27.000000000 +0000 +++ Source/Additions/GSXML.m @@ -984,7 +984,11 @@ static NSMapTable *nodeNames = 0; 1, "utf-8"); xmlOutputBufferFlush(buf); +#if LIBXML_VERSION < 20900 string = UTF8StrLen(buf->buffer->content, buf->buffer->use); +#else + string = UTF8StrLen(xmlBufContent(buf->buffer), xmlBufUse(buf->buffer)); +#endif xmlOutputBufferClose(buf); } return string;