--- origsrc/lndir-1.0.1/lndir.c 2005-11-23 16:33:07.000000000 -0600 +++ src/lndir-1.0.1/lndir.c 2008-08-25 10:55:14.270794700 -0500 @@ -205,8 +205,10 @@ if ((sb.st_mode & S_IFMT) == S_IFDIR) #endif { +#ifndef __CYGWIN__ /* directory */ n_dirs--; +#endif if (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))