From f6209f1344af365f0d40bc10bb19635d028fb3bf Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 29 May 2012 21:19:50 +0000 Subject: [PATCH] Added a struct dirent for the CBMs. git-svn-id: svn://svn.cc65.org/cc65/trunk@5664 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/dirent.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/dirent.h b/include/dirent.h index a1e7b706a..7dd79c144 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -79,6 +79,18 @@ struct dirent { char d_name[13]; /* 8.3 + trailing 0 */ }; +#elif defined(__CBM__) + +struct dirent { + char d_name[16+1]; + unsigned int d_off; + unsigned int d_reclen; + unsigned char d_type; + + /* bsd extensions */ + unsigned char d_namlen; +}; + #elif defined(__LYNX__) struct dirent {