On 13 February 2015 at 20:10, Eric Blake <ebl...@redhat.com> wrote: [...] > I never completed the work at the time, because libvirt found another > solution for where it would have used open_memstream. I suppose I could > revive the patches, if they are still useful. Could you post the > version of the patches that you are using, to give me a leg up on > cleaning up my old work?
I'm using open_memstream.c as it was posted, with the exception of removing the HAVE_FUNOPEN conditional from open_memstream.c (darwin does have funopen(), just the define isn't set). I've also thrown the _GL_FUNCDECL_SYS (open_memstream, FILE *, (char **, size_t *)); into stdio.in.h, without the surrounding checks. I can mail the patch, of course, but it's really just https://www.mail-archive.com/bug-gnulib@gnu.org/msg18077.html minus all the files except open_memstream.c. -- M.