mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 23:46:27 -05:00
Fixes build in OS X.
This commit is contained in:
parent
9fa6964e05
commit
12f77ed778
3 changed files with 6 additions and 2 deletions
|
|
@ -123,6 +123,10 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if HAVE_MACH_MACH_TIME_H
|
||||
#include <mach/mach_time.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_DIRENT_H
|
||||
#include <dirent.h>
|
||||
#define NAMLEN(dirent) strlen((dirent)->d_name)
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ uint64_t tick(void)
|
|||
{
|
||||
#if HAVE_MACH_ABSOLUTE_TIME
|
||||
/* for Mac OS X */
|
||||
return match_absolute_time();
|
||||
return mach_absolute_time();
|
||||
#elif HAVE_CLOCK_GETTIME && (defined(CLOCK_MONOTONIC) || defined(CLOCK_MONOTONIC_RAW))
|
||||
/* for Linux */
|
||||
struct timespec tv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue