On 11/05/2013 09:53 AM, GW wrote: > On Tuesday 05 November 2013 09.48:44 Eric Blake wrote: >> On 11/05/2013 09:43 AM, GW wrote: >>> In file included from close-stream.c:25:0: >>> fpending.h:28:8: error: conflicting types for '__fpending' >>> In file included from ./stdio.h:43:0, >>> >>> from close-stream.h:1, >>> >>> from close-stream.c:20: >>> /usr/include/stdio.h:354:11: note: previous declaration of '__fpending' >>> was here *** Error code 1 >> >> Can you also show the relevant portion of your /usr/include/stdio.h >> (around line 354)? > > Sure. __fpending is declared as such in /usr/include/stdio.h: > __ssize_t __fpending(const FILE *);
Thanks. Both the return type (ssize_t vs. size_t) and the argument (FILE* vs. const FILE*) differ, but not in any way that should harm our usage of the internal function. Sounds like I merely need to add a configure-time test for whether __fpending is declared, rather than just going off of whether it is #define'd. Give me a bit of time, and I should have a patch. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature