Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.2 patches #239

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Internet was wrong on how to set feature test for clock_nanosleep. La…
…st time I use Internet for technical data.
  • Loading branch information
Matthew V committed Sep 7, 2012
commit cd3bcc898a8702dcab602ab4b4bea7f7d71a10b5
4 changes: 2 additions & 2 deletions util/env_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ class PosixEnv : public Env {

do
{
#if _POSIX_TIMERS > 0L
#if _POSIX_TIMERS >= 200801L
// later ... add test for CLOCK_MONOTONIC_RAW where supported (better)
ret_val=clock_nanosleep(CLOCK_MONOTONIC,0, &ts, &ts);
#else
Expand Down Expand Up @@ -664,7 +664,7 @@ PosixEnv::PosixEnv() : page_size_(getpagesize()),
{
struct timespec ts;

#if _POSIX_TIMERS > 0L
#if _POSIX_TIMERS >= 200801L
clock_getres(CLOCK_MONOTONIC, &ts);
clock_res_=ts.tv_sec*1000000+ts.tv_nsec/1000;
if (0==clock_res_)
Expand Down