Changes for Cygwin compatibility.

Allow generation of ACPICA apps on Cygwin.
This commit is contained in:
rmoore1 2007-03-27 20:25:46 +00:00
parent 21771513c0
commit 34e1a4c900
3 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -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__ */

View File

@ -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