Fixes for cygwin compile.
authorSteve Reinhardt <stever@eecs.umich.edu>
Thu, 30 Jun 2005 04:42:27 +0000 (00:42 -0400)
committerSteve Reinhardt <stever@eecs.umich.edu>
Thu, 30 Jun 2005 04:42:27 +0000 (00:42 -0400)
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

dev/ide_atareg.h
sim/syscall_emul.hh

index a3a2bd604cc5be04e644d94161b42e3449040626..5320529c8cf2f3cd3d525d3436e473c3c1ad88eb 100644 (file)
 #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
index 417531cc3478dc887019c0ed7ef36e139492e8cd..d061f868e0fa36a24a7be0543cfc981b164fe5da 100644 (file)
@@ -37,6 +37,9 @@
 
 #include <errno.h>
 #include <string>
+#ifdef __CYGWIN32__
+#include <sys/fcntl.h> // for O_BINARY
+#endif
 
 #include "base/intmath.hh"     // for RoundUp
 #include "mem/functional/functional.hh"