diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 16:27:58 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 20:06:17 -0500 |
commit | c625abdb5f8b5a58059517c69e6ddebfd6b9710e (patch) | |
tree | bbeb335c3c8a351118ffc2838c0cd0bf1d3216d4 /user/open-vm-tools/vgauth-portability.patch | |
parent | b264031d6c87b70151b3c4c93b8d029cf7a903e6 (diff) | |
download | packages-c625abdb5f8b5a58059517c69e6ddebfd6b9710e.tar.gz packages-c625abdb5f8b5a58059517c69e6ddebfd6b9710e.tar.bz2 packages-c625abdb5f8b5a58059517c69e6ddebfd6b9710e.tar.xz packages-c625abdb5f8b5a58059517c69e6ddebfd6b9710e.zip |
user/open-vm-tools: New package
Diffstat (limited to 'user/open-vm-tools/vgauth-portability.patch')
-rw-r--r-- | user/open-vm-tools/vgauth-portability.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/user/open-vm-tools/vgauth-portability.patch b/user/open-vm-tools/vgauth-portability.patch new file mode 100644 index 000000000..ad484a8fd --- /dev/null +++ b/user/open-vm-tools/vgauth-portability.patch @@ -0,0 +1,49 @@ +--- open-vm-tools-12.4.0-23259341/vgauth/common/VGAuthLog.c.old 2024-02-06 09:07:33.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/vgauth/common/VGAuthLog.c 2024-05-22 14:27:07.008724455 -0500 +@@ -210,7 +210,7 @@ + g_vsnprintf(buf, sizeof buf, fmt, args); + buf[sizeof buf - 1] = '\0'; + +-#ifdef sun ++#ifndef __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); +--- open-vm-tools-12.4.0-23259341/vgauth/lib/netPosix.c.old 2024-02-06 09:07:36.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/vgauth/lib/netPosix.c 2024-05-22 14:26:11.458768814 -0500 +@@ -27,7 +27,6 @@ + #include <sys/socket.h> + #include <sys/stat.h> + #include <unistd.h> +-#include <sys/unistd.h> + #include <sys/un.h> + #include <netinet/in.h> + #include <arpa/inet.h> +--- open-vm-tools-12.4.0-23259341/vgauth/serviceImpl/netPosix.c.old 2024-02-06 09:07:35.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/vgauth/serviceImpl/netPosix.c 2024-05-22 14:28:53.728639235 -0500 +@@ -27,7 +27,6 @@ + #include <sys/socket.h> + #include <sys/stat.h> + #include <unistd.h> +-#include <sys/unistd.h> + #include <sys/un.h> + #include <netinet/in.h> + #include <arpa/inet.h> +--- open-vm-tools-12.4.0-23259341/vgauth/common/vmxrpc.c.old 2024-02-06 09:07:36.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/vgauth/common/vmxrpc.c 2024-05-22 14:42:02.708035980 -0500 +@@ -76,13 +76,13 @@ + typedef unsigned __int64 uint64; + + #endif +-#ifdef __linux__ ++#if defined(__linux__) && defined(__GLIBC__) + typedef __uint32_t uint32; + typedef __uint64_t uint64; + + #define SOCKET int + #endif +-#ifdef sun ++#if (defined(__linux__) && !defined(__GLIBC__)) || defined(sun) + typedef uint32_t uint32; + typedef uint64_t uint64; + |