Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 1 | From 3fa237b3afabc293e563292b8d89265a871626ad Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Martin Kelly <mkelly@xevo.com> |
| 3 | Date: Mon, 22 May 2017 17:00:05 -0700 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 4 | Subject: [PATCH] add #include <sys/sysmacros.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | --- |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 14 | open-vm-tools/lib/wiper/wiperPosix.c | 3 +++ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 18 | index bd542410..ccf06293 100644 |
| 19 | --- a/open-vm-tools/lib/wiper/wiperPosix.c |
| 20 | +++ b/open-vm-tools/lib/wiper/wiperPosix.c |
| 21 | @@ -43,6 +43,9 @@ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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" |