Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1170)

Unified Diff: base/time_posix.cc

Issue 118469: compile on openbsd: mostly ifdefs and missing includes,... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/time_posix.cc
===================================================================
--- base/time_posix.cc (revision 17958)
+++ base/time_posix.cc (working copy)
@@ -157,7 +157,8 @@
// reported in nanoseconds is enough to last nearly 585 years.
#elif defined(OS_POSIX) && \
- defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0
+ ((defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0) || \
+ defined(OS_OPENBSD))
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {

Powered by Google App Engine
This is Rietveld 408576698