Mercurial > hg > xemacs-beta
diff src/sysdir.h @ 3212:26a547441418
[xemacs-hg @ 2006-01-21 13:34:20 by crestani]
Fixes for Cygwin 1.5.19:
* sysdir.h: Workaround missing d_ino field from 'struct dirent'.
* mc-alloc.c (init_mc_allocator): Cygwin claims to have a 64k
page size, add it.
author | crestani |
---|---|
date | Sat, 21 Jan 2006 13:34:21 +0000 |
parents | 804517e16990 |
children | 6bade5a5afc0 |
line wrap: on
line diff
--- a/src/sysdir.h Fri Jan 20 22:51:21 2006 +0000 +++ b/src/sysdir.h Sat Jan 21 13:34:21 2006 +0000 @@ -62,7 +62,11 @@ Since applying strlen to the name always works, we'll just do that. */ #define NAMLEN(p) strlen (p->d_name) -#define DIRENTRY_NONEMPTY(p) ((p)->d_ino) +#ifdef __CYGWIN__ +# define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0') +#else +# define DIRENTRY_NONEMPTY(p) ((p)->d_ino) +#endif /* encapsulation: directory calls */