This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Build failed on MinGW host, sh-elf target.
- From: Masaki Muranaka <monaka at monami-software dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 6 May 2006 13:09:55 +0900
- Subject: Build failed on MinGW host, sh-elf target.
Hello All,
GDB build was failed at ser-e7kpc.c on MinGW host, sh-elf target.
(there is no build failure on the linux host, sh-elf target.)
The error messages is follows:
../../src/gdb/ser-e7kpc.c:232: warning: implicit declaration of
function `time'
make[2]: *** [ser-e7kpc.o] Error 1
- - - - - -
2006-05-06 Masaki Muranaka <monaka@monami-software.com>
* defs.h: Include <time.h> if HAVE_TIME_H is defined.
- - - - - -
Index: gdb/defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.194
diff -u -p -r1.194 defs.h
--- gdb/defs.h 25 Feb 2006 04:36:39 -0000 1.194
+++ gdb/defs.h 6 May 2006 04:02:33 -0000
@@ -39,6 +39,10 @@
#include <unistd.h>
#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
#include <fcntl.h>
/* First include ansidecl.h so we can use the various macro definitions
--
Masaki Muranaka
Monami software