]> git.sur5r.net Git - cc65/commitdiff
Added a struct dirent for the CBMs.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 May 2012 21:19:50 +0000 (21:19 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 May 2012 21:19:50 +0000 (21:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5664 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dirent.h

index a1e7b706ae846053f59819395fc33dd26215acff..7dd79c144c23aac2f071797b1e3fae771685b091 100644 (file)
@@ -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 {