public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [sim] Include defs.h in ppc/hw_memory.c
@ 2021-10-08 20:16 Christian Biesinger
  2021-10-09  1:16 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Biesinger @ 2021-10-08 20:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: Christian Biesinger

From: Christian Biesinger <cbiesinger@chromium.org>

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
      |                      ^
      |                      ;
---
 sim/ppc/hw_memory.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sim/ppc/hw_memory.c b/sim/ppc/hw_memory.c
index 46b22f7b6e3..2376be6730b 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"
-- 
2.33.0.882.g93a45727a2-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [sim] Include defs.h in ppc/hw_memory.c
  2021-10-08 20:16 [PATCH] [sim] Include defs.h in ppc/hw_memory.c Christian Biesinger
@ 2021-10-09  1:16 ` Mike Frysinger
  2021-10-28 19:09   ` Christian Biesinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2021-10-09  1:16 UTC (permalink / raw)
  To: Christian Biesinger; +Cc: gdb-patches, Christian Biesinger

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

lgtm, thanks

(if you need me to push, lemme know)
-mike

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [sim] Include defs.h in ppc/hw_memory.c
  2021-10-09  1:16 ` Mike Frysinger
@ 2021-10-28 19:09   ` Christian Biesinger
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Biesinger @ 2021-10-28 19:09 UTC (permalink / raw)
  To: Christian Biesinger, gdb-patches, Christian Biesinger

On Fri, Oct 8, 2021 at 9:16 PM Mike Frysinger <vapier@gentoo.org> wrote:
>
> lgtm, thanks
>
> (if you need me to push, lemme know)

I finally found my SSH key again and pushed this.

   d6dc01baf75..cf365c10d07  HEAD -> master

Christian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-28 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 20:16 [PATCH] [sim] Include defs.h in ppc/hw_memory.c Christian Biesinger
2021-10-09  1:16 ` Mike Frysinger
2021-10-28 19:09   ` Christian Biesinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).