From 9970a3631ae9da0a57f12ea9658a84198d479fe4 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sun, 17 Feb 2013 01:03:51 +0100 Subject: [PATCH] The new POSIX directory access in the CBM C library comes with a d_blocks field too. --- core/cfs/cfs-posix-dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cfs/cfs-posix-dir.c b/core/cfs/cfs-posix-dir.c index 3423167d9..4512f5786 100644 --- a/core/cfs/cfs-posix-dir.c +++ b/core/cfs/cfs-posix-dir.c @@ -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; } /*---------------------------------------------------------------------------*/