aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/bsd/bits/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/bits/dirent.h')
-rw-r--r--sysdeps/unix/bsd/bits/dirent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/bsd/bits/dirent.h b/sysdeps/unix/bsd/bits/dirent.h
index 6f88661694..642c79183e 100644
--- a/sysdeps/unix/bsd/bits/dirent.h
+++ b/sysdeps/unix/bsd/bits/dirent.h
@@ -17,6 +17,10 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifndef _DIRENT_H
+# error "Never use <bits/dirent.h> directly; include <dirent.h> instead."
+#endif
+
struct dirent
{
unsigned int d_fileno; /* 32 bits. */