Merge pull request #10506 from wjwithagen/wip-wjw-clock-realtime

FreeBSD: Define CLOCK_REALTIME_COARSE in compat.h
This commit is contained in:
Sage Weil 2016-09-22 08:31:34 -05:00 committed by GitHub
commit 1f09557ffa
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,13 @@
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#endif
#endif
#if !defined(CLOCK_REALTIME_COARSE)
#if defined(CLOCK_REALTIME_FAST)
#define CLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST
#else
#define CLOCK_REALTIME_COARSE CLOCK_REALTIME
#endif
#endif
/* And include the extra required include file */
#include <pthread_np.h>

View File

@ -12,6 +12,8 @@
*
*/
#include "include/compat.h"
#include "simple_dispatcher.h"
#include "messages/MPing.h"
#include "messages/MDataPing.h"