summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrmoore1 <rmoore1>2007-03-27 20:25:46 +0000
committerrmoore1 <rmoore1>2007-03-27 20:25:46 +0000
commit34e1a4c9003d9ce196046bde74c21f914b825a76 (patch)
tree3632e2ee50f92201d3ce94fd69279b4a2243e034
parent21771513c0d492481637cca7e1383ca593e28824 (diff)
downloadacpica-34e1a4c9003d9ce196046bde74c21f914b825a76.tar.gz
Changes for Cygwin compatibility.
Allow generation of ACPICA apps on Cygwin.
-rw-r--r--source/include/platform/acenv.h4
-rw-r--r--source/include/platform/aclinux.h5
-rw-r--r--source/tools/acpisrc/acpisrc.h4
3 files changed, 9 insertions, 4 deletions
diff --git a/source/include/platform/acenv.h b/source/include/platform/acenv.h
index 559afa6b3..0c358774f 100644
--- a/source/include/platform/acenv.h
+++ b/source/include/platform/acenv.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: acenv.h - Generation environment specific items
- * $Revision: 1.131 $
+ * $Revision: 1.132 $
*
*****************************************************************************/
@@ -211,7 +211,7 @@
/*! [Begin] no source code translation */
-#if defined(__linux__)
+#if defined(_LINUX) || defined(__linux__)
#include "aclinux.h"
#elif defined(_AED_EFI)
diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h
index e1399ca71..92d77fa4f 100644
--- a/source/include/platform/aclinux.h
+++ b/source/include/platform/aclinux.h
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: aclinux.h - OS specific defines, etc.
- * $Revision: 1.42 $
+ * $Revision: 1.43 $
*
*****************************************************************************/
@@ -158,7 +158,10 @@
#define ACPI_USE_NATIVE_DIVIDE
#endif
+#ifndef __cdecl
#define __cdecl
+#endif
+
#define ACPI_FLUSH_CPU_CACHE()
#endif /* __KERNEL__ */
diff --git a/source/tools/acpisrc/acpisrc.h b/source/tools/acpisrc/acpisrc.h
index f4304495e..b5cad1e11 100644
--- a/source/tools/acpisrc/acpisrc.h
+++ b/source/tools/acpisrc/acpisrc.h
@@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: acpisrc.h - Include file for AcpiSrc utility
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
*****************************************************************************/
@@ -141,7 +141,9 @@ max (int a, int b)
return (a > b ? a : b);
}
+#ifndef O_BINARY
#define O_BINARY 0x0
+#endif
#define mkdir(x) mkdir(x, 0770)
#define stricmp strcasecmp