This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Why does bfd/trad-core.c include <sys/dir.h>?
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: Why does bfd/trad-core.c include <sys/dir.h>?
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Thu, 20 Apr 00 09:04:13 CDT
Andrew Cagney <ac131313@cygnus.com> wrote:
> bfd/trad-core.c includes <sys/dir.h> (unconditionally). My Solaris
> 2.5.1 machine tells me:
>
> /usr/include/sys/dir.h:41: warning: #warning "The information in this
> file should be obtained from <dirent.h>"
> /usr/include/sys/dir.h:42: warning: #warning "and is provided solely
> (and temporarily) for backward compatibility."
I hope you know that <dirent.h> exists only on SysVile/POSIX systems, on pure
UNIX/BSD you need <sys/dir.h>.
--
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)