Skip to content

Commit

Permalink
Merge pull request contiki-os#136 from oliverschmidt/master
Browse files Browse the repository at this point in the history
The new POSIX directory access in the CBM C library comes with a d_blocks field too.
  • Loading branch information
oliverschmidt committed Feb 17, 2013
2 parents f6f9ccc + 9970a36 commit 6e8e9ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/cfs/cfs-posix-dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ cfs_readdir(struct cfs_dir *p, struct cfs_dirent *e)
return -1;
}
strncpy(e->name, res->d_name, sizeof(e->name));
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
#if defined(__APPLE2__) || defined(__APPLE2ENH__) || defined(__CBM__)
e->size = res->d_blocks;
#else /* __APPLE2__ || __APPLE2ENH__ */
#else /* __APPLE2__ || __APPLE2ENH__ || __CBM__ */
e->size = 0;
#endif /* __APPLE2__ || __APPLE2ENH__ */
#endif /* __APPLE2__ || __APPLE2ENH__ || __CBM__ */
return 0;
}
/*---------------------------------------------------------------------------*/
Expand Down

0 comments on commit 6e8e9ff

Please sign in to comment.