diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2019-01-16 20:11:22 +0000 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-01-16 21:12:20 +0100 |
| commit | e01acd2d2c8c7f316974658f2d3fd171bd12d4d0 (patch) | |
| tree | da6e6b2b0fe679bd4a93f0d9d3f9eb8f9cf27035 /testing/java-sigar/musl-compat-strerror_r.patch | |
| parent | 230a84ab4beaf0862bf4b1ed648f0eb2262463c2 (diff) | |
| download | aports-e01acd2d2c8c7f316974658f2d3fd171bd12d4d0.tar.bz2 aports-e01acd2d2c8c7f316974658f2d3fd171bd12d4d0.tar.xz | |
testing/java-sigar: new aport
https://github.com/hyperic/sigar/
System Information Gatherer And Reporter
Diffstat (limited to 'testing/java-sigar/musl-compat-strerror_r.patch')
| -rw-r--r-- | testing/java-sigar/musl-compat-strerror_r.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/java-sigar/musl-compat-strerror_r.patch b/testing/java-sigar/musl-compat-strerror_r.patch new file mode 100644 index 0000000000..fcdd519ec4 --- /dev/null +++ b/testing/java-sigar/musl-compat-strerror_r.patch @@ -0,0 +1,24 @@ +From e78f794c22e7825374d1d9bda37f649ed2f725d3 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Mon, 14 Mar 2016 14:17:29 +0000 +Subject: [PATCH] only enable the GNU libc strerror_r on GNU libc + +We don't want use the non-standard GNU libc variant of strerror_r on +musl libc, or any libc other than GNU. +--- + src/os/linux/sigar_os.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/os/linux/sigar_os.h b/src/os/linux/sigar_os.h +index 29a2ba32..7e1ead7d 100644 +--- a/src/os/linux/sigar_os.h ++++ b/src/os/linux/sigar_os.h +@@ -70,7 +70,7 @@ struct sigar_t { + }; + + #define HAVE_STRERROR_R +-#ifndef __USE_XOPEN2K ++#if !defined(__USE_XOPEN2K) && defined(__GLIBC__) + /* use gnu version of strerror_r */ + #define HAVE_STRERROR_R_GLIBC + #endif |
