Parcourir la source

Move the _DIRENT_HAVE_D_TYPE test to avoid breaking fileutils
-Erik

Eric Andersen il y a 23 ans
Parent
commit
6d3a9e72c1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      include/dirent.h

+ 1 - 1
include/dirent.h

@@ -93,7 +93,6 @@ typedef __ino64_t ino64_t;
 #endif
 #endif
 
 
 
 
-#if defined __USE_BSD
 /* File types for `d_type'.  */
 /* File types for `d_type'.  */
 enum
 enum
   {
   {
@@ -117,6 +116,7 @@ enum
 # define DT_WHT		DT_WHT
 # define DT_WHT		DT_WHT
   };
   };
 
 
+#if defined __USE_BSD && defined _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)