From: Augustin Degomme Date: Mon, 5 Jan 2015 15:14:12 +0000 (+0100) Subject: avoid breaking with recent freebsd that implement this flag (as the comment said) X-Git-Tag: v3_12~760^2~32^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/460be8e161f05ae0e620a9a0a24d13c86c714271?hp=5524a24a54c030ab3d1abc9167eea7deae2a7119;ds=sidebyside avoid breaking with recent freebsd that implement this flag (as the comment said) This should help other bsds as well --- diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 869a0f50ee..b9912ace94 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -18,7 +18,7 @@ #endif //Freebsd doesn't provide this clock_gettime flag yet, because it was added too recently (after 1993) -#ifdef __FreeBSD__ +#if defined (CLOCK_PROF) && ! defined (CLOCK_PROCESS_CPUTIME_ID) #define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF #endif