[m-rev.] diff: fix runtime compilation in low-level C .par grades on MinGW

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Dec 14 03:36:57 AEDT 2010


Branches: main

Fix compilation of the runtime in low-level C .par grades on MinGW.

runtime/mercury_context.c:
 	Add a missing include on MinGW.

Julien.

Index: runtime/mercury_context.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_context.c,v
retrieving revision 1.84
diff -u -r1.84 mercury_context.c
--- runtime/mercury_context.c	13 Dec 2010 05:59:42 -0000	1.84
+++ runtime/mercury_context.c	13 Dec 2010 16:32:06 -0000
@@ -35,6 +35,10 @@
  #include <sched.h>
  #endif

+#ifdef MR_MINGW
+  #include <sys/time.h>     /* for gettimeofday() */
+#endif
+
  #ifdef MR_WIN32
    #include <sys/timeb.h>    /* for _ftime() */
  #endif


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list