From a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 3 Sep 2001 19:04:05 +0000 Subject: [PATCH] * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number field. (__DIRENT_VERSION): New define. --- newlib/ChangeLog | 6 ++++++ newlib/libc/sys/cygwin/sys/dirent.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9b18885b1..83ec9b479 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2001-09-03 Corinna Vinschen + + * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number + field. + (__DIRENT_VERSION): New define. + 2001-09-03 Corinna Vinschen * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member. diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h index 5b371cf57..f911a5612 100644 --- a/newlib/libc/sys/cygwin/sys/dirent.h +++ b/newlib/libc/sys/cygwin/sys/dirent.h @@ -13,9 +13,12 @@ #include +#define __DIRENT_VERSION 1 + struct dirent { - long __d_reserved[3]; + long d_version; /* Used since Cygwin 1.3.3. */ + long __d_reserved[2]; long d_fd; /* File descriptor of open directory. Used since Cygwin 1.3.3. */ ino_t d_ino; /* Just for compatibility, it's junk */ char d_name[256]; /* FIXME: use NAME_MAX? */