summaryrefslogtreecommitdiff
path: root/tcl/compat/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/compat/dirent.h')
-rw-r--r--tcl/compat/dirent.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tcl/compat/dirent.h b/tcl/compat/dirent.h
new file mode 100644
index 00000000000..9022f280560
--- /dev/null
+++ b/tcl/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.
+ *
+ * RCS: @(#) $Id$
+ */
+
+#ifndef _DIRENT
+#define _DIRENT
+
+#include <sys/dir.h>
+
+#define dirent direct
+
+#endif /* _DIRENT */