This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.10-283-gc6b6723


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  c6b6723e6b756d36d9912a1c430459634e15758b (commit)
      from  003c9895a89e71767ad64bafac1ca99622be2eb7 (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=c6b6723e6b756d36d9912a1c430459634e15758b

commit c6b6723e6b756d36d9912a1c430459634e15758b
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Sun Aug 23 12:27:09 2009 -0700

    Define _POSIX_VERSION correctly when older POSIX versions are selected.

diff --git a/ChangeLog b/ChangeLog
index fde9f03..280afff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
 
+	* posix/unistd.h: Define _POSIX_VERSION correctly if older POSIX
+	versions are selected.
+
 	* stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
 	as well.
 	* stdio-common/printf_fphex.c: Likewise.
diff --git a/posix/unistd.h b/posix/unistd.h
index cbab9f9..2de9a68 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -30,8 +30,22 @@ __BEGIN_DECLS
 /* These may be used to determine what facilities are present at compile time.
    Their values can be obtained at run time from `sysconf'.  */
 
+#ifdef __USE_XOPEN2K8
 /* POSIX Standard approved as ISO/IEC 9945-1 as of September 2008.  */
-#define	_POSIX_VERSION	200809L
+# define _POSIX_VERSION	200809L
+#elif defined __USE_XOPEN2K
+/* POSIX Standard approved as ISO/IEC 9945-1 as of December 2001.  */
+# define _POSIX_VERSION	200112L
+#elif defined __USE_POSIX199506
+/* POSIX Standard approved as ISO/IEC 9945-1 as of June 1995.  */
+# define _POSIX_VERSION	199506L
+#elif defined __USE_POSIX199309
+/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1993.  */
+# define _POSIX_VERSION	199309L
+#else
+/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1990.  */
+# define _POSIX_VERSION	199009L
+#endif
 
 /* These are not #ifdef __USE_POSIX2 because they are
    in the theoretically application-owned namespace.  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    3 +++
 posix/unistd.h |   16 +++++++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]