Skip to content

Commit

Permalink
added utils/patch_from_Brad_Aagaard_to_make_Scotch_compile_on_MacOS.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
komatits committed Aug 29, 2013
1 parent cce1c75 commit bb413d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions utils/patch_from_Brad_Aagaard_to_make_Scotch_compile_on_MacOS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

in file scotch/src/libscotch/common.c change:

clock_gettime(CLOCK_REALTIME, &tp);

to:

#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
clock_gettime(CLOCK_REALTIME, &tp);
#else
struct timeval tv;
gettimeofday(&tv, NULL);
tp.tv_sec = tv.tv_sec;
tp.tv_nsec = tv.tv_usec * 1000;
#endif

0 comments on commit bb413d0

Please sign in to comment.