summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Wildner <swildner@gmail.com>2015-07-01 08:43:57 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-07-01 23:17:53 +0200
commitcbc823405a48c93a6e98bb97ccdcb23ae034ab93 (patch)
treeb30b30b02115f23c463879ad0f523680e59258d8
parentACPICA: EFI: Add EFI interface definitions to eliminate dependency of GNU EFI (diff)
downloadlinux-cbc823405a48c93a6e98bb97ccdcb23ae034ab93.tar.xz
linux-cbc823405a48c93a6e98bb97ccdcb23ae034ab93.zip
ACPICA: Add dragon_fly support to unix file mapping file
ACPICA commit 795b215d6fd062386f0a1c23dff9ffa244683c4f ACPICA BZ 1130 This patch doesn't affect Linux kernel. Link: https://bugs.acpica.org/show_bug.cgi?id=1130 Link: https://github.com/acpica/acpica/commit/795b215d Signed-off-by: Sascha Wildner <swildner@gmail.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--tools/power/acpi/os_specific/service_layers/osunixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/acpi/os_specific/service_layers/osunixmap.c b/tools/power/acpi/os_specific/service_layers/osunixmap.c
index 0b1fa290245a..44ad4889d468 100644
--- a/tools/power/acpi/os_specific/service_layers/osunixmap.c
+++ b/tools/power/acpi/os_specific/service_layers/osunixmap.c
@@ -54,7 +54,7 @@ ACPI_MODULE_NAME("osunixmap")
#ifndef O_BINARY
#define O_BINARY 0
#endif
-#ifdef _free_BSD
+#if defined(_dragon_fly) || defined(_free_BSD)
#define MMAP_FLAGS MAP_SHARED
#else
#define MMAP_FLAGS MAP_PRIVATE