In message <[EMAIL PROTECTED]> Russ Allbery <[EMAIL PROTECTED]> wrote:
> Dan Kegel <[EMAIL PROTECTED]> writes: > > > Standard practice is probably to always write > > > #if HAVE_SYS_TYPES_H > > #include <sys/types.h> > > #endif > > There's no need to check for the existance of <sys/types.h> unless you're > attempting portability far beyond that any normal software package will > need. It exists on pretty much any modern platform and nearly all > obsolete ones. I still tend to check for it on the basis that I check all other header files, so I might as well check that one. There are systems that do not have sys/types.h. That way, all header file checks are done the same way. That also means that I always check for stdio.h too, which is contrary to the recommendations, but makes all the header checks the same. -- Stewart Brodie, Senior Software Engineer Cambridge CVS administration team Pace Micro Technology PLC 645 Newmarket Road Cambridge, CB5 8PB, United Kingdom WWW: http://www.pacemicro.com/