summaryrefslogtreecommitdiffstats
path: root/compat/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/dirent.h')
-rw-r--r--compat/dirent.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/compat/dirent.h b/compat/dirent.h
new file mode 100644
index 0000000..081376b
--- /dev/null
+++ b/compat/dirent.h
@@ -0,0 +1,23 @@
+/*
+ * dirent.h --
+ *
+ * This file is a replacement for <dirent.h> in systems that
+ * support the old BSD-style <sys/dir.h> with a "struct direct".
+ *
+ * Copyright (c) 1991 The Regents of the University of California.
+ * Copyright (c) 1994 Sun Microsystems, Inc.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ *
+ * SCCS: @(#) dirent.h 1.4 96/02/15 14:43:50
+ */
+
+#ifndef _DIRENT
+#define _DIRENT
+
+#include <sys/dir.h>
+
+#define dirent direct
+
+#endif /* _DIRENT */