On Wed, Dec 16, 2020 at 11:08:51AM -0800, Eric Biggers wrote: > > +#ifndef _WIN32 > > if (asprintf(&msg2, "%s: %s", msg, > > strerror_r(err, errbuf, sizeof(errbuf))) < 0) > > +#else > > + strerror_s(errbuf, sizeof(errbuf), err); > > + if (asprintf(&msg2, "%s: %s", msg, errbuf) < 0) > > +#endif > > goto out2; > > Instead of doing this, could you provide a strerror_r() implementation in > programs/utils.c for _WIN32? > Actually it would be lib/utils.c, not programs/utils.c. - Eric