This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada]: mingw32 patch for ada/cal.c
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Dec 2001 07:12:21 +1100 (EST)
- Subject: [Ada]: mingw32 patch for ada/cal.c
Another mingw32 patchlet. Recent mingw distros define struct timeval in
winsock.h, following usage of native compiler, not sys/time.h. I can't find
timeval in the mingw runtime ChangeLog (which goes back to 1997) so I can't
say when it was last in sys/time.h
2001-12-18 Danny Smith <dannysmith@sourceforge.users.net>
*ada/cal.c: Include <winsock.h> if __MINGW32__.
Index: cal.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/cal.c,v
retrieving revision 1.1
diff -u -p -r1.1 cal.c
--- cal.c 2001/10/02 14:08:29 1.1
+++ cal.c 2001/12/17 19:58:51
@@ -60,6 +60,10 @@ __gnat_duration_to_timeval (long sec, lo
#include <sys/time.h>
#endif
+#if defined (__MINGW32__)
+#include <winsock.h> /* for timeval */
+#endif
+
void
__gnat_timeval_to_duration (struct timeval *t, long *sec, long *usec)
{
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your festive greetings online!