aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/strerror_r.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-05 19:24:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-05 19:47:07 +0000
commit26e7a7c6ff609fe93d72fa6da71cfaac5e720d01 (patch)
tree51653688f64594e53b474284904556e88e38d365 /main/open-vm-tools/strerror_r.patch
parenteae2154208ce1ccb5fce909ec671767ff1a510d1 (diff)
downloadaports-26e7a7c6ff609fe93d72fa6da71cfaac5e720d01.tar.bz2
aports-26e7a7c6ff609fe93d72fa6da71cfaac5e720d01.tar.xz
main/open-vm-tools: fix another strerror_r issue
possibly related ref #6997
Diffstat (limited to 'main/open-vm-tools/strerror_r.patch')
-rw-r--r--main/open-vm-tools/strerror_r.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/open-vm-tools/strerror_r.patch b/main/open-vm-tools/strerror_r.patch
new file mode 100644
index 0000000000..1d3554d0fd
--- /dev/null
+++ b/main/open-vm-tools/strerror_r.patch
@@ -0,0 +1,13 @@
+diff --git a/open-vm-tools/vgauth/common/VGAuthLog.c b/open-vm-tools/vgauth/common/VGAuthLog.c
+index fb4261e..1b29536 100644
+--- a/open-vm-tools/vgauth/common/VGAuthLog.c
++++ b/open-vm-tools/vgauth/common/VGAuthLog.c
+@@ -210,7 +210,7 @@ LogErrorPosixCodeV(int code,
+ g_vsnprintf(buf, sizeof buf, fmt, args);
+ buf[sizeof buf - 1] = '\0';
+
+-#ifdef sun
++#if !defined(__GLIBC__)
+ strerror_r(code, errMsg, sizeof errMsg);
+ g_warning("[function %s, file %s, line %d], %s, [errno = %d], %s\n",
+ func, file, line, buf, code, errMsg);