summaryrefslogtreecommitdiff
path: root/include/dirent.h
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-08-27 18:16:18 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-08-27 18:16:18 +0000
commit0a6ce9213e83835ffa8c434a6644b55932715e8c (patch)
tree24416d5ef7aba33b6d991da90b74df49ece252f2 /include/dirent.h
parent35cb31213eb23278be9aa95dd9e552aac7d3b83a (diff)
Make this as glibc-like as possible while avoiding the fileutils
problem. glibc hides the DT_* enum values unless __USE_BSD is defined.
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index cbee1f947..f3299c719 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -93,6 +93,7 @@ typedef __ino64_t ino64_t;
#endif
+#ifdef __USE_BSD
/* File types for `d_type'. */
enum
{
@@ -116,11 +117,12 @@ enum
# 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. */
# define IFTODT(mode) (((mode) & 0170000) >> 12)
# define DTTOIF(dirtype) ((dirtype) << 12)
#endif
+#endif
/* This is the data type of directory stream objects.