Fixes for cygwin compile.
dev/ide_atareg.h: Need endian.h for LITTLE_ENDIAN. sim/syscall_emul.hh: Need to include sys/fcntl.h to get O_BINARY. --HG-- extra : convert_revision : 606f9506dc483f3952dcc65b8ba25c28001f2c43
This commit is contained in:
parent
ec1f689d0d
commit
5107b3bc83
2 changed files with 10 additions and 0 deletions
|
@ -33,7 +33,14 @@
|
||||||
#ifndef _DEV_ATA_ATAREG_H_
|
#ifndef _DEV_ATA_ATAREG_H_
|
||||||
#define _DEV_ATA_ATAREG_H_
|
#define _DEV_ATA_ATAREG_H_
|
||||||
|
|
||||||
|
#if defined(linux)
|
||||||
|
#include <endian.h>
|
||||||
|
#else
|
||||||
|
#include <machine/endian.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ATA_BYTE_ORDER LITTLE_ENDIAN
|
#define ATA_BYTE_ORDER LITTLE_ENDIAN
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Drive parameter structure for ATA/ATAPI.
|
* Drive parameter structure for ATA/ATAPI.
|
||||||
* Bit fields: WDC_* : common to ATA/ATAPI
|
* Bit fields: WDC_* : common to ATA/ATAPI
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#ifdef __CYGWIN32__
|
||||||
|
#include <sys/fcntl.h> // for O_BINARY
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "base/intmath.hh" // for RoundUp
|
#include "base/intmath.hh" // for RoundUp
|
||||||
#include "mem/functional/functional.hh"
|
#include "mem/functional/functional.hh"
|
||||||
|
|
Loading…
Reference in a new issue