Line 0
Link Here
|
|
|
1 |
See http://sphinxsearch.com/bugs/view.php?id=326 |
2 |
|
3 |
Index: src/searchd.cpp |
4 |
3882c3882,3890 |
5 |
< if ( clock_gettime ( CLOCK_PROCESS_CPUTIME_ID, &tp ) ) |
6 |
--- |
7 |
> #if defined(CLOCK_PROCESS_CPUTIME_ID) && defined(__linux__) |
8 |
> # define CLOCK CLOCK_PROCESS_CPUTIME_ID |
9 |
> #elif defined(CLOCK_PROF) && defined(__FreeBSD__) |
10 |
> # define CLOCK CLOCK_PROF |
11 |
> #else |
12 |
> # define CLOCK CLOCK_REALTIME |
13 |
> #endif |
14 |
> //if ( clock_gettime ( CLOCK_PROCESS_CPUTIME_ID, &tp ) ) |
15 |
> if ( clock_gettime ( CLOCK, &tp ) ) |
16 |
3883a3892 |
17 |
> #undef CLOCK |