|
@@ -93,6 +93,7 @@ typedef __ino64_t ino64_t;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
+#ifdef __USE_BSD
|
|
/* File types for `d_type'. */
|
|
/* File types for `d_type'. */
|
|
enum
|
|
enum
|
|
{
|
|
{
|
|
@@ -116,11 +117,12 @@ enum
|
|
# define DT_WHT DT_WHT
|
|
# define DT_WHT DT_WHT
|
|
};
|
|
};
|
|
|
|
|
|
-#if defined __USE_BSD && defined _DIRENT_HAVE_D_TYPE
|
|
+#ifdef _DIRENT_HAVE_D_TYPE
|
|
/* Convert between stat structure types and directory types. */
|
|
/* Convert between stat structure types and directory types. */
|
|
# define IFTODT(mode) (((mode) & 0170000) >> 12)
|
|
# define IFTODT(mode) (((mode) & 0170000) >> 12)
|
|
# define DTTOIF(dirtype) ((dirtype) << 12)
|
|
# define DTTOIF(dirtype) ((dirtype) << 12)
|
|
#endif
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
/* This is the data type of directory stream objects.
|
|
/* This is the data type of directory stream objects.
|