Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix mingw32 gdbserver build failure
@ 2010-06-15 10:06 Pierre Muller
  2010-06-15 10:40 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Muller @ 2010-06-15 10:06 UTC (permalink / raw)
  To: gdb-patches; +Cc: 'Pedro Alves', 'Stan Shebs'

gdbserver compilation fails for mingw32.

This was because of int64_t use in emit_const
of revision 1.70 dated 2010-06-14.

  Rather than simply adding a single line patch as obvious,
I would prefer that we use HAVE_STDINT_H 
in all occurences of include <stdint.h>


Pierre Muller

ChangeLog entry:


2010-06-15  Pierre Muller  <muller@ics.u-strasbg.fr>

	* server.h: Add missing "stdint.h" include with guard.
	thread-db.c: Add inlcude guard for "stdint.h" header.

Index: server.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.h,v
retrieving revision 1.70
diff -u -p -r1.70 server.h
--- server.h    14 Jun 2010 22:16:09 -0000      1.70
+++ server.h    15 Jun 2010 09:56:57 -0000
@@ -29,6 +29,9 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
Index: thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/thread-db.c,v
retrieving revision 1.36
diff -u -p -r1.36 thread-db.c
--- thread-db.c 3 May 2010 18:13:36 -0000       1.36
+++ thread-db.c 15 Jun 2010 09:56:57 -0000
@@ -34,7 +34,9 @@ static int thread_db_use_events;
 #include <dlfcn.h>
 #endif

+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 #include <limits.h>
 #include <ctype.h>


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

end of thread, other threads:[~2010-06-15 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-15 10:06 [RFA] Fix mingw32 gdbserver build failure Pierre Muller
2010-06-15 10:40 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox