Why does bfd/trad-core.c include <sys/dir.h>?

Andrew Cagney ac131313@cygnus.com
Wed Apr 19 23:52:00 GMT 2000


Andrew Cagney wrote:
> 
> Hello,
> 
> 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."
> 
> what really puzzles me is that I can't see any obvious <dirent.h>
> dependant code in the file.

Sorry,  this occures on a FreeBSD 3.4 i386 system.

	Andrew


More information about the Binutils mailing list