OSDN Git Service

Unlike glibc, uClibc doesn't always support the d_type field of
authorManuel Novoa III <mjn3@codepoet.org>
Tue, 20 Aug 2002 22:41:58 +0000 (22:41 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Tue, 20 Aug 2002 22:41:58 +0000 (22:41 -0000)
struct dirent.  So, disable the d_type support macros when d_type
isn't available.  This fixes a build problem file fileutils-4.1.

include/dirent.h

index 8079d70..b3fbf2d 100644 (file)
@@ -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
   {