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.11-127-gb1a6644


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  b1a664426773dc7f80886f99962ee8f9b36d2c0f (commit)
      from  f69190e74a081f0a35906ff0b9a8dc24e42341e8 (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=b1a664426773dc7f80886f99962ee8f9b36d2c0f

commit b1a664426773dc7f80886f99962ee8f9b36d2c0f
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Jan 14 09:14:12 2010 -0800

    Declare getpagesize in _GNU_SOURCE mode again.

diff --git a/ChangeLog b/ChangeLog
index 8298f0e..13faa59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
 
+	* posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
+
 	[BZ #11120]
 	* sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
 	needed outside libc.
diff --git a/posix/unistd.h b/posix/unistd.h
index d869755..611ddf0 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -986,7 +986,7 @@ extern long int gethostid (void);
 extern void sync (void) __THROW;
 
 
-# ifndef __USE_XOPEN2K
+# if defined __USE_GNU || !defined __USE_XOPEN2K
 /* Return the number of bytes in a page.  This is the system's page size,
    which is not necessarily the same as the hardware page size.  */
 extern int getpagesize (void)  __THROW __attribute__ ((__const__));

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

Summary of changes:
 ChangeLog      |    2 ++
 posix/unistd.h |    4 ++--
 2 files changed, 4 insertions(+), 2 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]