mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix <dirent.h> not being C89 friendly.
This commit is contained in:
parent
efe8e49df0
commit
b607900a00
2 changed files with 3 additions and 3 deletions
|
@ -77,10 +77,10 @@ struct kernel_dirent
|
|||
ino_t d_ino;
|
||||
dev_t d_dev;
|
||||
unsigned char d_type;
|
||||
char d_name[];
|
||||
__extension__ char d_name[];
|
||||
};
|
||||
|
||||
static inline struct kernel_dirent* kernel_dirent_next(struct kernel_dirent* ent)
|
||||
static __inline struct kernel_dirent* kernel_dirent_next(struct kernel_dirent* ent)
|
||||
{
|
||||
if ( !ent->d_nextoff )
|
||||
return NULL;
|
||||
|
|
|
@ -73,7 +73,7 @@ struct dirent
|
|||
ino_t d_ino;
|
||||
dev_t d_dev;
|
||||
unsigned char d_type;
|
||||
char d_name[0];
|
||||
__extension__ char d_name[];
|
||||
};
|
||||
|
||||
#define _DIRENT_HAVE_D_RECLEN
|
||||
|
|
Loading…
Add table
Reference in a new issue