]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api: Use GNU strerror_r when available
authorKhem Raj <raj.khem@gmail.com>
Fri, 13 Jan 2023 19:44:07 +0000 (12:44 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 13 Jan 2023 19:53:42 +0000 (12:53 -0700)
commit942ef655237b90909edf53eafd121842cdc07ce1
treec40e0dc3bb474dca6443d6c4c1253adf337a249a
parent44a90415da4ee96bee2d7b51673cd53fe54824a1
api: Use GNU strerror_r when available

GNU strerror_r is only available in glibc, musl impelents the XSI
version which is slightly different, therefore check if GNU version is
available before using it, otherwise use the XSI compliant version.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
TJH: Minor formatting change so that the line doesn't exceed 100 chars
configure.ac
src/api.c