1From 95c6184d9ff70a47c41768850923a96de9e544aa Mon Sep 17 00:00:00 2001
2From: Natanael Copa <ncopa@alpinelinux.org>
3Date: Wed, 18 Nov 2015 10:41:01 +0000
4Subject: [PATCH] Use configure test for sys/stat.h include
5
6This is needed for musl libc.
7
8Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
9[Retrieved from:
10http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0011-Use-configure-test-for-sys-stat.h-include.patch?h=sumo]
11Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
12---
13 open-vm-tools/services/plugins/vix/vixTools.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16Index: open-vm-tools/services/plugins/vix/vixTools.c
17===================================================================
18--- open-vm-tools.orig/services/plugins/vix/vixTools.c
19+++ open-vm-tools/services/plugins/vix/vixTools.c
20@@ -66,7 +66,7 @@
21 #include <unistd.h>
22 #endif
23
24-#if defined(sun) || defined(__FreeBSD__) || defined(__APPLE__)
25+#ifdef HAVE_SYS_STAT_H
26 #include <sys/stat.h>
27 #endif
28
29