OpenBSD uses _CLOCKID_T_DEFINED_ instead of CLOCKID_T
This commit is contained in:
parent
e0c15ea7e8
commit
953a5e0641
|
@ -1,7 +1,11 @@
|
||||||
#ifndef CLOCK_GETTIME_H
|
#ifndef CLOCK_GETTIME_H
|
||||||
#define CLOCK_GETTIME_H
|
#define CLOCK_GETTIME_H
|
||||||
|
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h> // Apple-only, but this isn't inclued on other BSDs
|
||||||
|
|
||||||
|
#ifdef _CLOCKID_T_DEFINED_
|
||||||
|
#define CLOCKID_T
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CLOCKID_T
|
#ifndef CLOCKID_T
|
||||||
#define CLOCKID_T
|
#define CLOCKID_T
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#ifndef CLOCK_NANOSLEEP_H
|
#ifndef CLOCK_NANOSLEEP_H
|
||||||
#define CLOCK_NANOSLEEP_H
|
#define CLOCK_NANOSLEEP_H
|
||||||
|
|
||||||
|
#ifdef _CLOCKID_T_DEFINED_
|
||||||
|
#define CLOCKID_T
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CLOCKID_T
|
#ifndef CLOCKID_T
|
||||||
#define CLOCKID_T
|
#define CLOCKID_T
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
Loading…
Reference in a new issue