summaryrefslogtreecommitdiffstats
path: root/covoar/TraceWriterQEMU.cc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-02 14:25:28 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-02 14:25:28 +0000
commitdf4d9e9f6560210a22158e320abd398e2c3bcf38 (patch)
treec496419ff2bb838a03b9ddef30d94dc6eff98aec /covoar/TraceWriterQEMU.cc
parentrtems-testing: Use eval bash instead of full path (diff)
downloadrtems-testing-df4d9e9f6560210a22158e320abd398e2c3bcf38.tar.bz2
covoar: Fix issues spotted by clang on FreeBSD 10
Diffstat (limited to 'covoar/TraceWriterQEMU.cc')
-rw-r--r--covoar/TraceWriterQEMU.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/covoar/TraceWriterQEMU.cc b/covoar/TraceWriterQEMU.cc
index 689db65..89cfd01 100644
--- a/covoar/TraceWriterQEMU.cc
+++ b/covoar/TraceWriterQEMU.cc
@@ -19,8 +19,8 @@ typedef uint32_t target_ulong;
#include "qemu-traces.h"
-/* hack so this can compile on the RH7 RTEMS 4.5 host */
-#if (__GNUC__ <= 2)
+/* hack so this can compile on old Linux versions and FreeBSD */
+#if (__GNUC__ <= 2) || defined(__FreeBSD__)
#define STAT stat
#define OPEN fopen
#else