Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame^] | 1 | From 2bc09bc7d933bc3d91c687e1cc2befdaa38d2c86 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 2 | From: Natanael Copa <ncopa@alpinelinux.org> |
| 3 | Date: Wed, 18 Nov 2015 10:41:01 +0000 |
| 4 | Subject: [PATCH] Use configure test for sys/stat.h include |
| 5 | |
| 6 | This is needed for musl libc. |
| 7 | |
| 8 | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> |
| 9 | --- |
| 10 | open-vm-tools/services/plugins/vix/vixTools.c | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/open-vm-tools/services/plugins/vix/vixTools.c b/open-vm-tools/services/plugins/vix/vixTools.c |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame^] | 14 | index 34f3125d2..cebf4dd8d 100644 |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 15 | --- a/open-vm-tools/services/plugins/vix/vixTools.c |
| 16 | +++ b/open-vm-tools/services/plugins/vix/vixTools.c |
| 17 | @@ -66,7 +66,7 @@ |
| 18 | #include <unistd.h> |
| 19 | #endif |
| 20 | |
| 21 | -#if defined(sun) || defined(__FreeBSD__) || defined(__APPLE__) |
| 22 | +#ifdef HAVE_SYS_STAT_H |
| 23 | #include <sys/stat.h> |
| 24 | #endif |
| 25 | |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame^] | 26 | -- |
| 27 | 2.25.1 |
| 28 | |