This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-226-g7a27035
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 26 Feb 2012 02:28:49 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-226-g7a27035
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 7a270350a9bc3110cd5ba12bbd8c5c8c365e0032 (commit)
from 7724defcf8873116fe4efab256596861eef21a94 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=7a270350a9bc3110cd5ba12bbd8c5c8c365e0032
commit 7a270350a9bc3110cd5ba12bbd8c5c8c365e0032
Author: Ulrich Drepper <drepper@gmail.com>
Date: Sat Feb 25 21:28:27 2012 -0500
Fix ISO C11 definitions in time.h
diff --git a/ChangeLog b/ChangeLog
index 2105c8a..f1dd278 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-25 Ulrich Drepper <drepper@gmail.com>
+
+ * time/time.h: TIME_UTC must be a macro.
+ Make timespec_get available for ISO C11 only as well.
+
2012-02-24 Ulrich Drepper <drepper@gmail.com>
* stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
diff --git a/time/time.h b/time/time.h
index 7a1e533..775c092 100644
--- a/time/time.h
+++ b/time/time.h
@@ -179,10 +179,7 @@ typedef __pid_t pid_t;
# ifdef __USE_ISOC11
/* Time base values for timespec_get. */
-enum
- {
- TIME_UTC = 1
- };
+# define TIME_UTC 1
# endif
@@ -362,13 +359,6 @@ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
# endif
-# ifdef __USE_ISOC11
-/* Set TS to calendar time based in time base BASE. */
-extern int timespec_get (struct timespec *__ts, int __base)
- __THROW __nonnull ((1));
-# endif
-
-
/* Create new per-process timer using CLOCK_ID. */
extern int timer_create (clockid_t __clock_id,
struct sigevent *__restrict __evp,
@@ -391,6 +381,13 @@ extern int timer_getoverrun (timer_t __timerid) __THROW;
# endif
+# ifdef __USE_ISOC11
+/* Set TS to calendar time based in time base BASE. */
+extern int timespec_get (struct timespec *__ts, int __base)
+ __THROW __nonnull ((1));
+# endif
+
+
# ifdef __USE_XOPEN_EXTENDED
/* Set to one of the following values to indicate an error.
1 the DATEMSK environment variable is null or undefined,
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
time/time.h | 19 ++++++++-----------
2 files changed, 13 insertions(+), 11 deletions(-)
hooks/post-receive
--
GNU C Library master sources