* trad-core.c: From hpux-core.c, include <dirent.h> or
authorAndrew Cagney <cagney@redhat.com>
Thu, 1 Jun 2000 10:09:30 +0000 (10:09 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 1 Jun 2000 10:09:30 +0000 (10:09 +0000)
<sys/ndir.h> when possible.

bfd/ChangeLog
bfd/trad-core.c

index 798ed4d58d0020f221e87cfa62147e580b48f664..475f23d44ceffd2390711bdb09f5586fd2cb94da 100644 (file)
@@ -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
index aea6366795b4037c6fe8edb94ddd5ef9dd473607..9cd12c04aee8ccb6bae499aac231012e13b7f7ba 100644 (file)
@@ -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  */