From eefde0f247126a53aa34e598f62c94b15cbce3e3 Mon Sep 17 00:00:00 2001
From: jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 31 Jan 2011 20:58:41 +0000
Subject: Fix GF_CLOCK_MONOTONIC from r169449

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169450 138bc75d-0d04-0410-961f-82ee72b054a4
---
 libgfortran/ChangeLog           | 4 ++++
 libgfortran/intrinsics/time_1.h | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

(limited to 'libgfortran')

diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 1c7553904a7..8c7ad7a7c86 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
+
+	* intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
+
 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
 
 	* configure.ac: Check for clock_gettime().
diff --git a/libgfortran/intrinsics/time_1.h b/libgfortran/intrinsics/time_1.h
index 5ee5d5acb4a..4fd82356852 100644
--- a/libgfortran/intrinsics/time_1.h
+++ b/libgfortran/intrinsics/time_1.h
@@ -184,7 +184,7 @@ gf_cputime (long *user_sec, long *user_usec, long *system_sec, long *system_usec
 #ifdef CLOCK_MONOTONIC
 #define GF_CLOCK_MONOTONIC CLOCK_MONOTONIC
 #else
-#define GF_CLOCK_REALTIME GF_CLOCK_REALTIME
+#define GF_CLOCK_MONOTONIC GF_CLOCK_REALTIME
 #endif
 
 /* Arguments:
-- 
cgit v1.2.1