diff options
Diffstat (limited to 'meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch')
-rw-r--r-- | meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch new file mode 100644 index 000000000..f905601d5 --- /dev/null +++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-add-include-sys-sysmacros.h.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 5818acc8032e3247257730376e947330340a07b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Kelly <mkelly@xevo.com> | ||
3 | Date: Mon, 22 May 2017 17:00:05 -0700 | ||
4 | Subject: [PATCH 2/2] add #include <sys/sysmacros.h> | ||
5 | |||
6 | In newer glibc versions, the definition for major() has been moved to | ||
7 | sys/sysmacros.h, and using the older version in <sys/types.h> has been | ||
8 | deprecated. So, add an include for <sys/sysmacros.h>. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Martin Kelly <mkelly@xevo.com> | ||
13 | --- | ||
14 | lib/wiper/wiperPosix.c | 3 +++ | ||
15 | 1 file changed, 3 insertions(+) | ||
16 | |||
17 | diff --git a/open-vm-tools/lib/wiper/wiperPosix.c b/open-vm-tools/lib/wiper/wiperPosix.c | ||
18 | index d389eee..1f221fc 100644 | ||
19 | --- a/lib/wiper/wiperPosix.c | ||
20 | +++ b/lib/wiper/wiperPosix.c | ||
21 | @@ -40,6 +40,9 @@ | ||
22 | # include <libgen.h> | ||
23 | # endif /* __FreeBSD_version >= 500000 */ | ||
24 | #endif | ||
25 | +#if defined(__linux__) | ||
26 | +#include <sys/sysmacros.h> | ||
27 | +#endif | ||
28 | #include <unistd.h> | ||
29 | |||
30 | #include "vmware.h" | ||
31 | -- | ||
32 | 2.7.4 | ||
33 | |||