+
+#if 0
+ /*
+ Check if directory. TODO: encapsulate for autoconf
+ */
+ struct stat sbuf;
+ if (stat (path.ch_C(), &sbuf) == ENOENT)
+ continue;
+
+ if (!(sbuf.st_mode & __S_IFREG))
+ continue;
+#endif
+#if !STAT_MACROS_BROKEN
+ struct stat sbuf;
+ if (stat (path.ch_C (), &sbuf) == ENOENT)
+ continue;
+
+ if (S_ISDIR (sbuf.st_mode))
+ continue;
+#endif
+