Commit 13b72b4d authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

dev/sock: fix build error with usleep



Defines usleep when needed. This build error was discovered via the
random config tests in jenkins.
Signed-off-by: Rob Latham's avatarRob Latham <robl@mcs.anl.gov>
parent beda01ce
......@@ -35,6 +35,9 @@
#elif defined (USE_USLEEP_FOR_YIELD)
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#if defined (NEEDS_USLEEP_DECL)
int usleep(useconds_t usec);
#endif
#endif
#define MPIU_PW_Sched_yield() usleep(0)
#elif defined (USE_SLEEP_FOR_YIELD)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment