Skip to content

Commit

Permalink
Declare getpagesize in _GNU_SOURCE mode again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 14, 2010
1 parent f69190e commit b1a6644
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions posix/unistd.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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__));
Expand Down

0 comments on commit b1a6644

Please sign in to comment.