diff options
author | Elliott Hughes <enh@google.com> | 2015-01-09 15:16:16 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-01-09 15:16:16 -0800 |
commit | 0a18df82f4dea95b7398f8c934341fccbf04eeee (patch) | |
tree | 125c8285763ffc6d9c00b27eaed6a7aad5b317ee /runtime/globals.h | |
parent | 553727e466942a10e11ee39dcb67e3f9562b471e (diff) | |
download | art-0a18df82f4dea95b7398f8c934341fccbf04eeee.zip art-0a18df82f4dea95b7398f8c934341fccbf04eeee.tar.gz art-0a18df82f4dea95b7398f8c934341fccbf04eeee.tar.bz2 |
Clean up some #ifdefs.
Only the Mac doesn't have POSIX clocks. (And it still doesn't, a decade
later.)
glibc gained pthread_setname_np in 2.12.
Only the Mac doesn't have prctl.
Change-Id: I218e409f7e133736e15fb68e8a254cdc5799d667
Diffstat (limited to 'runtime/globals.h')
-rw-r--r-- | runtime/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index e531c3a..93026da 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -108,7 +108,7 @@ enum TraceClockSource { kTraceClockSourceDual, // Both wall and thread CPU clocks. }; -#if defined(HAVE_POSIX_CLOCKS) +#if defined(__linux__) static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceDual; #else static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceWall; |