[Libsysio-commit] LLNL_HPSS: libsysio configure.in
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2005-09-06 14:35:43
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4186 Modified Files: Tag: LLNL_HPSS configure.in Log Message: POSIX defines the ioctl request to be of type `int' and not `unsigned long int' as we had it. Fixed. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.20.2.2 retrieving revision 1.20.2.3 diff -u -w -b -B -p -r1.20.2.2 -r1.20.2.3 --- configure.in 29 Aug 2005 21:57:25 -0000 1.20.2.2 +++ configure.in 6 Sep 2005 14:35:32 -0000 1.20.2.3 @@ -274,6 +274,19 @@ if test x$sysio_largefile64_source_requi AC_DEFINE(_LARGEFILE64_SOURCE) fi +# POSIX defines the arguments to ioctl, now. Discover which way it's done +# for this host. Old, BSD, way or the new, POSIX, way. +AC_MSG_CHECKING(which ioctl prototype to use) +AC_TRY_COMPILE([ +#include <sys/ioctl.h>], [ +], +sysio_use_bsd_ioctl=bsd, +sysio_use_bsd_ioctl=posix) +AC_MSG_RESULT($sysio_use_bsd_ioctl) +if test x$sysio_use_bsd_ioctl = xbsd; then + AC_DEFINE(SYSIO_USE_BSD_IOCTL) +fi + # Alpha linux defines # AC_MSG_CHECKING(for alpha linux) |