From: Ulrich Drepper Date: Thu, 14 Jan 2010 17:14:12 +0000 (-0800) Subject: Declare getpagesize in _GNU_SOURCE mode again. X-Git-Tag: fedora/glibc-2.11.90-9~1^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a664426773dc7f80886f99962ee8f9b36d2c0f;p=thirdparty%2Fglibc.git Declare getpagesize in _GNU_SOURCE mode again. --- diff --git a/ChangeLog b/ChangeLog index 8298f0eb147..13faa5998ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2010-01-14 Ulrich Drepper + * 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 d8697553a73..611ddf02d1f 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__));