aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_dirent.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-25 06:49:01 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-25 06:49:01 +0000
commit4b14d3e4e0d9ba2ff2f9397312f884f8fc9a1135 (patch)
tree63a806bea5f0fd97c92dd98419dea2fef3cbdda2 /gdb/gdb_dirent.h
parent944d780c6e86df3d8af2c2a1ac2e988cb0fee4c6 (diff)
downloadgdb-4b14d3e4e0d9ba2ff2f9397312f884f8fc9a1135.zip
gdb-4b14d3e4e0d9ba2ff2f9397312f884f8fc9a1135.tar.gz
gdb-4b14d3e4e0d9ba2ff2f9397312f884f8fc9a1135.tar.bz2
Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h".
Diffstat (limited to 'gdb/gdb_dirent.h')
-rw-r--r--gdb/gdb_dirent.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/gdb_dirent.h b/gdb/gdb_dirent.h
new file mode 100644
index 0000000..9cb4006
--- /dev/null
+++ b/gdb/gdb_dirent.h
@@ -0,0 +1,40 @@
+/* Portable <dirent.h>
+ Copyright 2000 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#if !defined(GDB_DIRENT_H)
+#define GDB_DIRENT_H
+
+/* From bfd/hpux-core.c. */
+
+#ifdef HAVE_DIRENT_H
+# include <dirent.h>
+#else
+# ifdef HAVE_SYS_NDIR_H
+# include <sys/ndir.h>
+# endif
+# ifdef HAVE_SYS_DIR_H
+# include <sys/dir.h>
+# endif
+# ifdef HAVE_NDIR_H
+# include <ndir.h>
+# endif
+#endif
+
+#endif /* !defined(GDB_DIRENT_H) */