[PATCH 15/25] lib: Implement error properly even when not HAVE_ERR_H

Mark Wielaard mark@klomp.org
Mon Dec 12 15:37:52 GMT 2022


Hi,

On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel
wrote:
> on win32, there is no err.h
> [...]
> +#else
> +  (void)status;
> +  vfprintf(stderr, format, argp);
> +#endif
>    va_end(argp);

That doesn't look like a valid implementation of error, it ignores
errno and doesn't exit when necessary.

Cheers,

Mark


More information about the Elfutils-devel mailing list