On 09/28/2015 02:26 AM, Stefan Weil wrote: >> Can you explain why osdep.h's >> >> #define FMT_pid "%" PRId64 >> >> is appropriate for Windows? > > Don't blame me for any strangeness which you might find in Windows. :-) > > Mingw-w64 sys/types.h defines pid_t to be either an int or an __int64. > FMT_pid must match these definitions. > > But getpid returns an int, not a pid_t...
Can we 1) file a bug against mingw for their buggy getpid(), and 2) write a wrapper that makes getpid() always return pid_t in the meantime? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature