aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/opendir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-12-06 01:38:34 +0000
committerRoland McGrath <roland@gnu.org>2005-12-06 01:38:34 +0000
commit2ce7e666e9f64730bdac1be1c7b43c2375d82826 (patch)
tree44573949c5a491a52c743d125574e9e27d550fa6 /sysdeps/unix/opendir.c
parenta6ba1c33efd5895cb35b0e68027b74786f161cfe (diff)
downloadglibc-2ce7e666e9f64730bdac1be1c7b43c2375d82826.zip
glibc-2ce7e666e9f64730bdac1be1c7b43c2375d82826.tar.gz
glibc-2ce7e666e9f64730bdac1be1c7b43c2375d82826.tar.bz2
* sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
protection and allow pthread.h to include bits/setjmp.h as well as setjmp.h. * sysdeps/m68k/bits/setjmp.h: Likewise. * sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h are allow to include bits/setjmp.h. * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs cast of address. * sysdeps/sh/bits/setjmp.h: Likewise. 2005-11-12 Jim Meyering <jim@meyering.net> * sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter to be pointer to const. * include/dirent.h: Update decl.
Diffstat (limited to 'sysdeps/unix/opendir.c')
-rw-r--r--sysdeps/unix/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c
index 98fb4ca..6aa738f 100644
--- a/sysdeps/unix/opendir.c
+++ b/sysdeps/unix/opendir.c
@@ -139,7 +139,7 @@ weak_alias (__opendir, opendir)
DIR *
internal_function
-__alloc_dir (int fd, bool close_fd, struct stat64 *statp)
+__alloc_dir (int fd, bool close_fd, const struct stat64 *statp)
{
if (__builtin_expect (__fcntl (fd, F_SETFD, FD_CLOEXEC), 0) < 0)
goto lose;