Fix <dirent.h> not being C89 friendly.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-07-07 17:31:06 +02:00
parent efe8e49df0
commit b607900a00
2 changed files with 3 additions and 3 deletions

View File

@ -77,10 +77,10 @@ struct kernel_dirent
ino_t d_ino; ino_t d_ino;
dev_t d_dev; dev_t d_dev;
unsigned char d_type; 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 ) if ( !ent->d_nextoff )
return NULL; return NULL;

View File

@ -73,7 +73,7 @@ struct dirent
ino_t d_ino; ino_t d_ino;
dev_t d_dev; dev_t d_dev;
unsigned char d_type; unsigned char d_type;
char d_name[0]; __extension__ char d_name[];
}; };
#define _DIRENT_HAVE_D_RECLEN #define _DIRENT_HAVE_D_RECLEN