diff --git a/utils/patch_from_Brad_Aagaard_to_make_Scotch_compile_on_MacOS.txt b/utils/patch_from_Brad_Aagaard_to_make_Scotch_compile_on_MacOS.txt new file mode 100644 index 000000000..28b9513f8 --- /dev/null +++ b/utils/patch_from_Brad_Aagaard_to_make_Scotch_compile_on_MacOS.txt @@ -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 +