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 | 75502a4c90f780070f8de8f828d3521528111404 (patch) | |
tree | c0355b28deff4abdcc4fc73cb1a4ae30e65c0bab | |
parent | ab6127379c884b99a68fb5c3591f70992e066b0e (diff) | |
download | binutils-redhat-75502a4c90f780070f8de8f828d3521528111404.tar.gz |
* trad-core.c: From hpux-core.c, include <dirent.h> or
<sys/ndir.h> when possible.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/trad-core.c | 14 |
2 files changed, 18 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 798ed4d58d..475f23d44c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * trad-core.c: From hpux-core.c, include <dirent.h> or + <sys/ndir.h> when possible. + 2000-05-31 Nick Clifton <nickc@cygnus.com> * opintl.h (_(String)): Explain why dgettext is used instead diff --git a/bfd/trad-core.c b/bfd/trad-core.c index aea6366795..9cd12c04ae 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 */ |