diff liboctave/kpse.cc @ 5622:8b7046423d1e

[project @ 2006-02-15 16:36:32 by jwe]
author jwe
date Wed, 15 Feb 2006 16:36:32 +0000
parents 36074b79a73b
children 8d7162924bd3
line wrap: on
line diff
--- a/liboctave/kpse.cc
+++ b/liboctave/kpse.cc
@@ -73,9 +73,8 @@
 
 /* If you want to find subdirectories in a directory with non-Unix
    semantics (specifically, if a directory with no subdirectories does
-   not have exactly two links), define this.  Cygwin systems do not
-   have Unix semantics for network mapped drives.  */
-#if defined(__DJGPP__) || ! (defined (DOSISH) || defined (__CYGWIN__))
+   not have exactly two links), define this.  */
+#if defined(__DJGPP__) || ! defined (DOSISH)
 /* Surprise!  DJGPP returns st_nlink exactly like on Unix.  */
 #define ST_NLINK_TRICK
 #endif /* either not DOSISH or __DJGPP__ */
@@ -2274,7 +2273,7 @@
                  some such, we can still find subdirectories, even if it
                  is much slower.  */
 #ifdef ST_NLINK_TRICK
-              if (links > 2)
+              if (links != 2)
 #endif /* not ST_NLINK_TRICK */
                 /* All criteria are met; find subdirectories.  */
                 do_subdir (str_list_ptr, name, potential_len, post);