Toward a satisfactory showmanyc

Paolo Carlini pcarlini@unitus.it
Thu Mar 20 22:21:00 GMT 2003


Paolo Carlini wrote:

> Of course this implies autoconf machinery for <sys/ioctl.h>
> vs <ioctl.h> and also for FIONREAD in <sys/filio.h>
> (I had hoped for fewer different possibilites :(

A small update: this part turns out to be easy, since we can stole
the whole thing from libjava ;)

Essentially:

dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
dnl On that system, sys/ioctl.h will not include sys/filio.h unless
dnl BSD_COMP is defined; just including sys/filio.h is simpler.
AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)

and then:

#ifdef HAVE_SYS_IOCTL_H
#define BSD_COMP /* Get FIONREAD on Solaris2. */
#include <sys/ioctl.h>
#endif

// Pick up FIONREAD on Solaris 2.5.
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif

Paolo.



More information about the Libstdc++ mailing list