Skip to content

Commit

Permalink
fixup! main: add d_reclen as an alias for d_namelen (struct dirent)
Browse files Browse the repository at this point in the history
  • Loading branch information
masatake committed Aug 4, 2017
1 parent 70caa13 commit cb184a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/portable-dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ extern "C" {
typedef struct dirent
{
char d_name[MAX_PATH + 1]; /* File name */
#define d_reclen d_namelen
#define d_namelen d_reclen
size_t d_namlen; /* Length of name without \0 */
int d_type; /* File type */
} dirent;
Expand Down

0 comments on commit cb184a3

Please sign in to comment.