[go: up one dir, main page]

Menu

[r20]: / dtorrent / trunk / compat.h  Maximize  Restore  History

Download this file

33 lines (24 with data), 456 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COMPAT_H
#define COMPAT_H
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(HAVE_SYS_TIME_H) || defined(TIME_WITH_SYS_TIME)
#include <time.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifndef CLOCK_REALTIME
#define CLOCK_REALTIME 0
#endif
#ifndef HAVE_CLOCKID_T
typedef int clockid_t;
#endif
#ifndef HAVE_CLOCK_GETTIME
int clock_gettime(clockid_t clock_id, struct timespec *tp);
#endif
#ifdef __cplusplus
}
#endif
#endif