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

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


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.

	thoughts?
		Andrew


More information about the Binutils mailing list