diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-14 07:56:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-14 07:56:51 +0000 |
commit | 2e4747a36a51fd58c21f3f00db959709e83fe08b (patch) | |
tree | 55b3fa7393c53b4b2fa2bb96fdae27d9d4444a97 /app-admin/augeas/files | |
parent | 5c1e419582680cfb61e0ae777c693704f3a731e1 (diff) |
gentoo auto-resync : 14:02:2023 - 07:56:50
Diffstat (limited to 'app-admin/augeas/files')
-rw-r--r-- | app-admin/augeas/files/augeas-1.14.0-musl-strerror_r.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-admin/augeas/files/augeas-1.14.0-musl-strerror_r.patch b/app-admin/augeas/files/augeas-1.14.0-musl-strerror_r.patch new file mode 100644 index 000000000000..07cda4c4ae02 --- /dev/null +++ b/app-admin/augeas/files/augeas-1.14.0-musl-strerror_r.patch @@ -0,0 +1,22 @@ +https://github.com/hercules-team/augeas/pull/791 + +From 46ecd3542820604603ab4f046f9fb3e6195f60aa Mon Sep 17 00:00:00 2001 +From: Dimitry Andric <dimitry@andric.com> +Date: Thu, 8 Dec 2022 13:08:53 +0100 +Subject: [PATCH] Only use GNU specific strerror_r() API when __GLIBC__ is + defined. + +--- a/src/internal.c ++++ b/src/internal.c +@@ -431,8 +431,8 @@ char *cleanpath(char *path) { + + const char *xstrerror(int errnum, char *buf, size_t len) { + #ifdef HAVE_STRERROR_R +-# ifdef __USE_GNU +- /* Annoying linux specific API contract */ ++# if defined(__USE_GNU) && defined(__GLIBC__) ++ /* Annoying GNU specific API contract */ + return strerror_r(errnum, buf, len); + # else + strerror_r(errnum, buf, len); + |