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/hgfs-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/hgfs-portability.patch')
-rw-r--r-- | user/open-vm-tools/hgfs-portability.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/open-vm-tools/hgfs-portability.patch b/user/open-vm-tools/hgfs-portability.patch new file mode 100644 index 000000000..dcd46b24f --- /dev/null +++ b/user/open-vm-tools/hgfs-portability.patch @@ -0,0 +1,34 @@ +--- open-vm-tools-12.4.0-23259341/lib/include/hgfsUtil.h.old 2024-02-06 09:08:40.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/lib/include/hgfsUtil.h 2024-05-22 14:05:09.079168248 -0500 +@@ -53,17 +53,5 @@ + # include <time.h> + # endif + # include "vm_basic_types.h" +-# if !defined _STRUCT_TIMESPEC && \ +- !defined _TIMESPEC_DECLARED && \ +- !defined __timespec_defined && \ +- !defined sun && \ +- !defined __FreeBSD__ && \ +- !__APPLE__ && \ +- !defined _WIN32 +-struct timespec { +- time_t tv_sec; +- long tv_nsec; +-}; +-# endif + + # include "hgfs.h" +--- open-vm-tools-12.4.0-23259341/lib/hgfsServer/hgfsServerLinux.c.old 2024-02-06 09:08:55.000000000 -0600 ++++ open-vm-tools-12.4.0-23259341/lib/hgfsServer/hgfsServerLinux.c 2024-05-22 14:04:34.789168929 -0500 +@@ -108,8 +108,10 @@ + * ALLPERMS (mode 07777) and ACCESSPERMS (mode 0777) are not defined in the + * Solaris version of <sys/stat.h>. + */ +-#ifdef sun ++#ifndef ACCESSPERMS + # define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) ++#endif ++#ifndef ALLPERMS + # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) + #endif + |