summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-27 01:47:10 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-27 01:47:10 +0000
commit6d3a9e72c17910c33ce4331cd0c9b761dfa06f75 (patch)
tree223ebcfbc15a39ad3e401abf6356baa91fd0939c
parentc7b01bcab8b86fa3dd2834988296e8688bd77c6f (diff)
Move the _DIRENT_HAVE_D_TYPE test to avoid breaking fileutils
-Erik
-rw-r--r--include/dirent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index b9a32f4fe..cbee1f947 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -93,7 +93,6 @@ typedef __ino64_t ino64_t;
#endif
-#if defined __USE_BSD
/* File types for `d_type'. */
enum
{
@@ -117,6 +116,7 @@ enum
# define DT_WHT DT_WHT
};
+#if defined __USE_BSD && defined _DIRENT_HAVE_D_TYPE
/* Convert between stat structure types and directory types. */
# define IFTODT(mode) (((mode) & 0170000) >> 12)
# define DTTOIF(dirtype) ((dirtype) << 12)