summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-06-30 00:42:27 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2005-06-30 00:42:27 -0400
commit5107b3bc83b5e5f4acbb7113843f942b14346ac2 (patch)
tree94b3933d664137e301a365b0fa338fb088cfe55d /dev
parentec1f689d0db9e1839e1b5a8f67f12d19f56c85e3 (diff)
downloadgem5-5107b3bc83b5e5f4acbb7113843f942b14346ac2.tar.xz
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
Diffstat (limited to 'dev')
-rw-r--r--dev/ide_atareg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/ide_atareg.h b/dev/ide_atareg.h
index a3a2bd604..5320529c8 100644
--- a/dev/ide_atareg.h
+++ b/dev/ide_atareg.h
@@ -33,7 +33,14 @@
#ifndef _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
+
/*
* Drive parameter structure for ATA/ATAPI.
* Bit fields: WDC_* : common to ATA/ATAPI