Browse Source

Unlike glibc, uClibc doesn't always support the d_type field of
struct dirent. So, disable the d_type support macros when d_type
isn't available. This fixes a build problem file fileutils-4.1.

Manuel Novoa III 22 years ago
parent
commit
9f6c1eba63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/dirent.h

+ 1 - 1
include/dirent.h

@@ -93,7 +93,7 @@ typedef __ino64_t ino64_t;
 #endif
 
 
-#ifdef __USE_BSD
+#if defined __USE_BSD && defined _DIRENT_HAVE_D_TYPE
 /* File types for `d_type'.  */
 enum
   {