X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cb2925f9e27482e531d327f9e1e19550c5966457..2489210b4ea8d03fbece8db288ef9e3ff6725723:/src/xbt/xbt_os_time.c diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 0f17fcc9a6..9788f9f343 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -17,6 +17,11 @@ #include #endif +//Freebsd doesn't provide this clock_gettime flag yet, because it was added too recently (after 1993) +#ifdef __FreeBSD__ +#define CLOCK_PROCESS_CPUTTIME_ID CLOCK_PROF +#endif + double xbt_os_time(void) { #ifdef HAVE_GETTIMEOFDAY