Commit 22431dd8 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

clock_gettime: include sys header

parent 6df01b04
......@@ -65,15 +65,6 @@
#pragma weak clock_gettime
#include <sys/time.h>
#include <sys/resource.h>
#include <mach/mach.h>
#include <mach/clock.h>
#include <mach/mach_time.h>
#include <errno.h>
#include <unistd.h>
#include <sched.h>
static mach_timebase_info_data_t __clock_gettime_inf;
static clock_serv_t belle_sip_calandar_clk;
static clock_serv_t belle_sip_system_clk;
......
......@@ -25,6 +25,17 @@
#endif
#ifndef HAVE_CLOCK_GETTIME
#include <sys/time.h>
#include <sys/resource.h>
#include <mach/mach.h>
#include <mach/clock.h>
#include <mach/mach_time.h>
#include <errno.h>
#include <unistd.h>
#include <sched.h>
typedef enum {
CLOCK_REALTIME,
CLOCK_MONOTONIC,
......
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