Skip to content
Snippets Groups Projects
Commit adb32159 authored by Moe Jette's avatar Moe Jette
Browse files

Add timersub macro as needed on AIX.

parent 2268cdc7
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,19 @@
#include "src/plugins/mpi/mvapich/mvapich.h"
/* NOTE: AIX lacks timersub */
#ifndef timersub
# define timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
#endif
/*
* Arguments passed to mvapich support thread.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment