X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fsysdir.h;h=a123909d47b17adb559cc7c0698c6c76780aeca9;hb=5303d5dd81123cdd53e71264ce2bbd7b5df635a9;hp=0139a8d5cc07e746931ceaf3f6a6cffb3df6f5ec;hpb=762383636a99307282c2d93d26c35c046ec24da1;p=chise%2Fxemacs-chise.git.1 diff --git a/src/sysdir.h b/src/sysdir.h index 0139a8d..a123909 100644 --- a/src/sysdir.h +++ b/src/sysdir.h @@ -59,7 +59,11 @@ Boston, MA 02111-1307, USA. */ 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 */