diff options
author | Christian Biesinger <cbiesinger@google.com> | 2021-10-28 15:09:00 -0400 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2021-10-28 15:09:00 -0400 |
commit | cf365c10d0786a4fd2423d451596b879ee44627a (patch) | |
tree | d931c4f77ce5f07f3fbe1d3f94cc0afc1a6c9f64 /sim | |
parent | d6dc01baf753ea9d27b504257fef51acabaaba20 (diff) | |
download | fsf-binutils-gdb-cf365c10d0786a4fd2423d451596b879ee44627a.zip fsf-binutils-gdb-cf365c10d0786a4fd2423d451596b879ee44627a.tar.gz fsf-binutils-gdb-cf365c10d0786a4fd2423d451596b879ee44627a.tar.bz2 |
[sim] Include defs.h in ppc/hw_memory.c
To fix this error (seen on cygwin):
/../../sim/ppc/../common ../../../sim/ppc/hw_memory.c
In file included from ../../gnulib/import/stdlib.h:100,
from ../../../sim/ppc/hw_memory.c:28:
../../gnulib/import/unistd.h:663:3: error: #error "Please include config.h first."
663 | #error "Please include config.h first."
| ^~~~~
../../gnulib/import/unistd.h:665:24: error: expected ';' before 'extern'
665 | _GL_INLINE_HEADER_BEGIN
| ^
| ;
../../gnulib/import/unistd.h:2806:22: error: expected ';' before 'extern'
2806 | _GL_INLINE_HEADER_END
| ^
| ;
Diffstat (limited to 'sim')
-rw-r--r-- | sim/ppc/hw_memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/ppc/hw_memory.c b/sim/ppc/hw_memory.c index c0826b7..9fb0908 100644 --- a/sim/ppc/hw_memory.c +++ b/sim/ppc/hw_memory.c @@ -25,6 +25,9 @@ #define STATIC_INLINE_HW_MEMORY STATIC_INLINE #endif +/* This must come before any other includes. */ +#include "defs.h" + #include <stdlib.h> #include "device_table.h" |