aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/acpi/platform
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-08-04 16:44:59 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-13 03:09:35 +0200
commite323c02dee59af7da65637852f6fa95551325d80 (patch)
treee9a77755a6a415235a088ce8ef1dd9114914c1d4 /include/acpi/platform
parentACPICA: Clib/EFI: Fix wrong order of standard integer types/IO handles (diff)
downloadwireguard-linux-e323c02dee59af7da65637852f6fa95551325d80.tar.xz
wireguard-linux-e323c02dee59af7da65637852f6fa95551325d80.zip
ACPICA: MSVC9: Fix <sys/stat.h> inclusion order issue
ACPICA commit 9bb265c2afb9910e46f820d6759648580edabd09 When /Za is specified, headers of some Windows SDKs contain bugs breaking VC builds, and MSVC9's default SDK is one of such header-buggy library. In order to solve this issue, many VC developers stop using /Za. However we've been asked to have this fixed without removing /Za. In MSVC9 default SDK, this issue can be fixed by restricting <sys/stat.h> to be the last standard file included by every source file in the projects. This patch thus moves <sys/stat.h> inclusion to "acapps.h", so that this issue can be fixed by ensuring that "acapps.h" is always the last standard file included by all of the ACPICA source files. This is in fact also a useful cleanup because applications can only include one header (e.x., acpidump.h) instead of including acapps.h separately. Lv Zheng. Except some harmless header inclusion re-ordering, Linux kernel is not affected by this change. Link: https://github.com/acpica/acpica/commit/9bb265c2 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/platform')
-rw-r--r--include/acpi/platform/acenv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index 1e2fe9501c16..3dbfa27424ea 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -350,7 +350,8 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
-#include <sys/stat.h>
+#include <time.h>
+#include <signal.h>
#endif
#endif /* ACPI_USE_STANDARD_HEADERS */