e9fd4b87f0
The header files argp.h and error.h do not exist in musl libc. Fix build with musl libc by using err(3) instead of the GNU-specific error(3). We could have used the identical errx("...: %s", strerror(ret))` but strerror(3) is not thread-safe and the strerror_r variant has two incompatible versions, one GNU specific and one XSI-compliant. Avoid the mess by letting "err" use the thread-local errno. This also fixes error message for kzmalloc failures which previously would always have given "Unknown error -1", since that is what strerror(-1) returns. Let "err" use the proper error message from errno which is set by kzalloc. Fixes: |
||
---|---|---|
.. | ||
caamflib | ||
caamflib.c | ||
compat.h | ||
dpaa_list.h | ||
dpaa_of.c | ||
dpaa_of.h | ||
dpaax_iova_table.c | ||
dpaax_iova_table.h | ||
dpaax_logs.h | ||
meson.build | ||
version.map |