blob: 34628ffbefaf7860dd2e246b99e6136e1ac38060 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001From 3fa237b3afabc293e563292b8d89265a871626ad Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Martin Kelly <mkelly@xevo.com>
3Date: Mon, 22 May 2017 17:00:05 -0700
Brad Bishop15ae2502019-06-18 21:44:24 -04004Subject: [PATCH] add #include <sys/sysmacros.h>
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6In newer glibc versions, the definition for major() has been moved to
7sys/sysmacros.h, and using the older version in <sys/types.h> has been
8deprecated. So, add an include for <sys/sysmacros.h>.
9
10Upstream-Status: Pending
11
12Signed-off-by: Martin Kelly <mkelly@xevo.com>
13---
Brad Bishop15ae2502019-06-18 21:44:24 -040014 open-vm-tools/lib/wiper/wiperPosix.c | 3 +++
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015 1 file changed, 3 insertions(+)
16
17diff --git a/open-vm-tools/lib/wiper/wiperPosix.c b/open-vm-tools/lib/wiper/wiperPosix.c
Brad Bishop15ae2502019-06-18 21:44:24 -040018index 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 Bishopd7bf8c12018-02-25 22:55:05 -050022 # 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"