From 70b2845f71c1fb6bd5ec3ef325974b6a90cdb45c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Aug 1999 18:44:33 +0000 Subject: Update. 1999-08-18 Ulrich Drepper * ctype/ctype.h: Avoid useless #endif #if pairs. * dirent/dirent.h: Define ino_t and ino64_t if not done already. (seekdir): Fix type of second parameter. * sysdeps/generic/seekdir.c: Likewise. * sysdeps/mach/hurd/seekdir.c: Likewise. * sysdeps/unix/seekdir.c: Likewise. * dlfcn/dlfcn.h: Define RTLD_NEXT and RTLD_DEFAULT only if __USE_GNU. --- dirent/dirent.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'dirent') diff --git a/dirent/dirent.h b/dirent/dirent.h index 472b4804af..7154b52c85 100644 --- a/dirent/dirent.h +++ b/dirent/dirent.h @@ -29,6 +29,20 @@ __BEGIN_DECLS #include +#ifdef __USE_XOPEN +# ifndef __ino_t_defined +# ifndef __USE_FILE_OFFSET64 +typedef __ino_t ino_t; +# else +typedef __ino64_t ino_t; +# endif +# define __ino_t_defined +# endif +# ifdef __USE_LARGEFILE64 +typedef __ino64_t ino64_t; +# endif +#endif + /* This file defines `struct dirent'. It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen' @@ -171,7 +185,7 @@ extern void rewinddir __P ((DIR *__dirp)); # include /* Seek to position POS on DIRP. */ -extern void seekdir __P ((DIR *__dirp, __off_t __pos)); +extern void seekdir __P ((DIR *__dirp, long int __pos)); /* Return the current position of DIRP. */ extern long int telldir __P ((DIR *__dirp)); -- cgit v1.2.3