summaryrefslogtreecommitdiff
path: root/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c
blob: 9be77c5fb1abfe5f218aa12d3c03cc1b31ccd7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-vgauth_common_VGAuthLog.c,v 1.2 2016/10/12 13:57:13 ryoon Exp $

--- vgauth/common/VGAuthLog.c.orig	2016-02-16 20:06:48.000000000 +0000
+++ 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(sun) || defined(__NetBSD__)
    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);