diff options
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/linux/sys/dirent.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/sys/dirent.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/sys/dirent.h b/newlib/libc/sys/linux/sys/dirent.h index 58d774594..ec8ed89d4 100644 --- a/newlib/libc/sys/linux/sys/dirent.h +++ b/newlib/libc/sys/linux/sys/dirent.h @@ -40,7 +40,7 @@ void rewinddir(DIR *); int closedir(DIR *); /* internal prototype */ -void _seekdir(DIR *dir,off_t offset); +void _seekdir(DIR *dir, long offset); DIR *_opendir(const char *); #ifndef _POSIX_SOURCE diff --git a/newlib/libc/sys/rtems/sys/dirent.h b/newlib/libc/sys/rtems/sys/dirent.h index fa3182824..9cd4f3657 100644 --- a/newlib/libc/sys/rtems/sys/dirent.h +++ b/newlib/libc/sys/rtems/sys/dirent.h @@ -31,6 +31,10 @@ int closedir(DIR *); void seekdir(DIR *dir, long loc); long telldir(DIR *dir); +#ifdef _COMPILING_NEWLIB +void _seekdir(DIR *dir, long offset); +#endif + #include <sys/types.h> #include <limits.h> |