diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-01 10:09:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-01 10:09:30 +0000 |
commit | 12df4d3c6b87641f9289d604c4f7e211c0bc5eb4 (patch) | |
tree | 383c7d93f9b7085b4e2c550fece3c44ca3426dc4 /bfd/trad-core.c | |
parent | * configure.host: Add patterns for i[3456]86-*-netbsdaout* (diff) | |
download | binutils-gdb-12df4d3c6b87641f9289d604c4f7e211c0bc5eb4.tar.gz binutils-gdb-12df4d3c6b87641f9289d604c4f7e211c0bc5eb4.tar.bz2 binutils-gdb-12df4d3c6b87641f9289d604c4f7e211c0bc5eb4.zip |
* trad-core.c: From hpux-core.c, include <dirent.h> or
<sys/ndir.h> when possible.
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r-- | bfd/trad-core.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c index aea6366795b..9cd12c04aee 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -25,7 +25,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "libaout.h" /* BFD a.out internal data structures */ #include <sys/param.h> -#include <sys/dir.h> +#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 #include <signal.h> #include <sys/user.h> /* After a.out.h */ |