Fix <dirent.h> not being C89 friendly.
This commit is contained in:
parent
efe8e49df0
commit
b607900a00
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue