Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Load system headers before intercepting gettimeofday to not mess up
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 17 Dec 2015 23:52:35 +0000 (00:52 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 17 Dec 2015 23:52:35 +0000 (00:52 +0100)
include/smpi/mpi.h

index 482fa7e..5bfe31a 100644 (file)
@@ -17,6 +17,7 @@
 #include <xbt/asserts.h>
 #include <simgrid/modelchecker.h>
 
+#include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
 
 #ifdef HAVE_MC