=== modified file 'configure.in' --- configure.in 2009-08-23 05:13:09 +0000 +++ configure.in 2009-08-24 13:58:37 +0000 @@ -414,25 +414,230 @@ [Defines how many threads aufs uses for I/O]) fi -AC_ARG_WITH(pthreads, - AS_HELP_STRING([--with-pthreads],[Use POSIX Threads])) -if test "$with_pthreads" = "yes"; then - AC_MSG_NOTICE([With pthreads]) -fi - -AC_ARG_WITH(aio, - AS_HELP_STRING([--with-aio],[Use POSIX AIO])) -if test "$with_aio" = "yes"; then - AC_MSG_NOTICE([With aio]) -fi - - AC_ARG_WITH(dl, AS_HELP_STRING([--with-dl],[Use dynamic linking])) if test "$with_dl" = "yes"; then AC_MSG_NOTICE([With dl]) fi +AC_ARG_ENABLE(disk-io, + AS_HELP_STRING([--enable-disk-io="list of modules"],[Build support for the list of disk I/O modules. + If unset only the "Blocking" module will be built. + Set without a value all available modules will be built. + See src/DiskIO for a list of available modules, or + Programmers Guide section on DiskIO + for details on how to build your custom disk module]), +[ case $enableval in + yes) + for dir in $srcdir/src/DiskIO/*; do + module="`basename $dir`" + if test -d "$dir" && test "$module" != CVS; then + AC_MSG_NOTICE([Autodetected $module DiskIO module]) + MAYBE_DISK_MODULES="$MAYBE_DISK_MODULES $module" + fi + done + AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) + ;; + no) + AC_DEFINE(USE_DISKIO,0,[DiskIO modules are expected to be available.]) + ;; + *) + MAYBE_DISK_MODULES=" `echo $enableval| sed -e 's/,/ /g;s/ */ /g'` " + AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) + ;; + esac +], +[ if test -z "$MAYBE_DISK_MODULES"; then + MAYBE_DISK_MODULES="Blocking" + AC_MSG_NOTICE([Enabling Blocking DiskIO module (required default)]) + AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) + fi +]) + +dnl Some autoconf.h defines we might enable later... +AC_DEFINE(USE_DISKIO_AIO, 0, [Whether POSIX AIO support is needed. Automatic]) +USE_AIOPS_WIN32=0 +use_aio= + +dnl Setup the module paths etc. +FOUND_DISKIO_AIO= +FOUND_DISKIO_BLOCKING= +FOUND_DISKIO_DISKDAEMON= +FOUND_DISKIO_DISKTHREADS= +DISK_LIBS= +DISK_MODULES= +DISK_LINKOBJS= +for module in $MAYBE_DISK_MODULES none; do + if test "$module" = "none"; then + continue + fi + if ! test -d $srcdir/src/DiskIO/$module; then + AC_MSG_ERROR(disk-io $module does not exist) + fi + case "$module" in + DiskDaemon) + if test "$FOUND_DISKIO_DISKDAEMON" = "yes" ; then + AC_MSG_ERROR([DiskIO DiskDaemon module listed twice.]) + fi + FOUND_DISKIO_DISKDAEMON="yes" + AC_MSG_NOTICE(["Enabling DiskDaemon DiskIO module]) + DISK_LIBS="$DISK_LIBS libDiskDaemon.a" + DISK_MODULES="$DISK_MODULES DiskDaemon" + DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" + DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o" + ;; + DiskThreads) + if test "$FOUND_DISKIO_DISKTHREADS" = "yes" ; then + AC_MSG_ERROR([DiskIO DiskThreads module listed twice.]) + fi + FOUND_DISKIO_DISKTHREADS="yes" + AC_ARG_WITH(pthreads,AS_HELP_STRING([--with-pthreads],[Use POSIX Threads])) + if test "$with_pthreads" = "yes"; then + AC_MSG_NOTICE([With pthreads]) + else + case "$host_os" in + mingw|mingw32) + USE_AIOPS_WIN32=1 + AC_MSG_NOTICE([Windows threads support automatically enabled]) + ;; + esac + fi + dnl Check for pthreads + dnl We use pthreads when doing ASYNC I/O + dnl + dnl TODO: this needs to be re-coded to handle more systems and better + dnl REF: http://www.openldap.org/lists/openldap-bugs/200006/msg00070.html + dnl REF: http://autoconf-archive.cryp.to/acx_pthread.html + if test "$with_pthreads" = "yes"; then + SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" + case "$host" in + i386-unknown-freebsd*) + if test "$GCC" = "yes" ; then + if test -z "$PRESET_LDFLAGS"; then + LDFLAGS="$LDFLAGS -pthread" + fi + fi + ;; + *-solaris2.*) + if test "$GCC" = "yes" ; then + SQUID_CFLAGS="$SQUID_CFLAGS -pthreads" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pthreads" + AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], + [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) + else + dnl test for -lpthread first. libc version is a stub apparently on Solaris. + SQUID_CFLAGS="$SQUID_CFLAGS -lpthread" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -lpthread" + AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], + [ SQUID_CFLAGS="$SQUID_CFLAGS -lpthread -mt" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -lpthread -mt" + AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], + [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) + ]) + fi + ;; + *) + AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], + [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) + ;; + esac + AC_MSG_NOTICE([Enabling DiskThreads DiskIO module]) + DISK_LIBS="$DISK_LIBS libDiskThreads.a" + DISK_MODULES="$DISK_MODULES DiskThreads" + DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o" + else + AC_MSG_ERROR([Native pthreads support disabled. DiskThreads module automaticaly disabled.]) + fi + ;; + + AIO) + if test "$FOUND_DISKIO_AIO" = "yes" ; then + AC_MSG_ERROR([DiskIO AIO module listed twice.]) + fi + FOUND_DISKIO_AIO="yes" + dnl Check for POSIX AIO availability + use_aio="yes" + LIBAIO= + AC_ARG_WITH(aio, AS_HELP_STRING([--without-aio],[Do not use POSIX AIO. Default: auto-detect])) + if test "$with_aio" != "no"; then + have_aio_header=no + AC_CHECK_HEADERS(aio.h,[have_aio_header=yes]) + dnl On some systems POSIX AIO functions are in librt + dnl On some systems POSIX AIO functions are in libaio + AC_CHECK_LIB(rt,aio_read,[LIBAIO="-lrt"],AC_CHECK_LIB(aio,aio_read,[LIBAIO="-laio"],[])) + dnl Enable AIO if the library and headers are found + if test "$LIBAIO" != "" && test "$have_aio_header" = "yes"; then + AC_MSG_NOTICE([Native POSIX AIO support detected.]) + use_aio="yes" + else + dnl Windows does things differently. We provide wrappers. + dnl TODO: Windows really needs its own DiskIO module or its Overlaped IO + case "$host_os" in + mingw|mingw32) + use_aio="yes" + AC_MSG_NOTICE([Windows being built. Maybe-enable POSIX AIO.]) + ;; + *) + AC_MSG_NOTICE([Native POSIX AIO support not detected. AIO automatically disabled.]) + use_aio="no" + ;; + esac + fi + else + AC_MSG_NOTICE([POSIX AIO support manually disabled.]) + use_aio="no" + fi + dnl Use the POSIX AIO pieces if we actually need them. + if test "$use_aio" = "yes" ; then + AC_DEFINE(USE_DISKIO_AIO, 1, [Whether POSIX AIO support is needed. Automatic]) + DISK_MODULES="$DISK_MODULES AIO" + DISK_LIBS="$DISK_LIBS $LIBAIO libAIO.a" + DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o" + case "$host_os" in + mingw|mingw32) + USE_AIO_WIN32=1 + AC_MSG_NOTICE([Replacing AIO DiskIO module with: Windows overlapped I/O support]) + ;; + *) + AC_MSG_NOTICE([Enabling AIO DiskIO module]) + ;; + esac + else + AC_MSG_NOTICE([AIO DiskIO Module disabled. Missing POSIX AIO support.]) + fi + ;; + + Blocking) + if test "$FOUND_DISKIO_BLOCKING" = "yes" ; then + AC_MSG_ERROR([DiskIO Blocking module listed twice.]) + fi + FOUND_DISKIO_BLOCKING="yes" + AC_MSG_NOTICE([Enabling Blocking DiskIO module]) + DISK_LIBS="$DISK_LIBS libBlocking.a" + DISK_MODULES="$DISK_MODULES Blocking" + DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o" + ;; + + *) + AC_MSG_NOTICE([Enabling $module DiskIO module]) + DISK_LIBS="$DISK_LIBS lib${module}.a" + DISK_MODULES="$DISK_MODULES ${module}" + DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o" + ;; + esac +done +AC_MSG_NOTICE([IO Modules built: $DISK_MODULES]) +AC_SUBST(DISK_MODULES) +AC_SUBST(DISK_LIBS) +AC_SUBST(DISK_PROGRAMS) +AC_SUBST(DISK_LINKOBJS) +AM_CONDITIONAL([USE_AIOPS_WIN32], [test "$USE_AIOPS_WIN32" = 1]) +AM_CONDITIONAL([USE_AIO_WIN32], [test "$USE_AIO_WIN32" = 1]) + + +dnl Check what Storage formats are wanted. +dnl This version will error out with a message saying why if a required DiskIO is missing. AC_ARG_ENABLE(storeio, AS_HELP_STRING([--enable-storeio="list of modules"],[Build support for the list of store I/O modules. The default is only to build the "ufs" module. @@ -472,32 +677,29 @@ else AC_MSG_ERROR(storeio $module does not exist) fi + case "$module" in + esac done AC_MSG_NOTICE([Store modules built: $STORE_MODULES]) fi -dnl remove all but diskd - its the only module that needs to recurse -dnl into the sub directory -UFS_FOUND= -NEED_UFS= -NEED_BLOCKING= -NEED_DISKDAEMON= -NEED_DISKTHREADS= -NEED_AIO= -STORE_TESTS= for fs in $STORE_MODULES none; do case "$fs" in diskd) + if ! test "$FOUND_DISKIO_BLOCKING" = "yes" && ! test "$FOUND_DISKIO_DISKDAEMON" = "yes" ; then + AC_MSG_ERROR([Storage diskd module requires DiskIO modules: Blocking or DiskDaemon]) + fi NEED_UFS="true" - NEED_BLOCKING="true" - NEED_DISKDAEMON="true" ;; aufs) + if ! test "$FOUND_DISKIO_BLOCKING" = "yes" && ! test "$FOUND_DISKIO_DISKTHREADS" = "yes" ; then + AC_MSG_ERROR([Storage diskd module requires DiskIO modules: Blocking or DiskThreads]) + fi NEED_UFS="true" - NEED_BLOCKING="true" - NEED_DISKTHREADS="true" ;; coss) - NEED_AIO="true" + if ! test "$FOUND_DISKIO_AIO" = "yes"; then + AC_MSG_ERROR([COSS requires POSIX AIO which is not available.]) + fi dnl dnl Automake om MinGW needs explicit exe extension dnl for STORE_TESTS substition @@ -543,195 +745,6 @@ AC_SUBST(STORE_LIBS_TO_ADD) AC_SUBST(STORE_TESTS) -AC_ARG_ENABLE(disk-io, - AS_HELP_STRING([--enable-disk-io="list of modules"],[Build support for the list of disk I/O modules. - If unset only the "Blocking" module will be built. - Set without a value all available modules will be built. - See src/DiskIO for a list of available modules, or - Programmers Guide section on DiskIO - for details on how to build your custom disk module]), -[ case $enableval in - yes) - for dir in $srcdir/src/DiskIO/*; do - module="`basename $dir`" - if test -d "$dir" && test "$module" != CVS; then - AC_MSG_NOTICE([Autodetected $module DiskIO module]) - DISK_MODULES="$DISK_MODULES $module" - fi - done - AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) - ;; - no) - AC_DEFINE(USE_DISKIO,0,[DiskIO modules are expected to be available.]) - ;; - *) - DISK_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" - AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) - ;; - esac -], -[ if test -z "$DISK_MODULES"; then - DISK_MODULES="Blocking" - AC_MSG_NOTICE([Enabling Blocking DiskIO module (required default)]) - AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) - fi -]) -if test -n "$DISK_MODULES"; then - for module in $DISK_MODULES; do - if test -d $srcdir/src/DiskIO/$module; then - : - else - AC_MSG_ERROR(disk-io $module does not exist) - fi - done - DISK_LIBS="lib`echo $DISK_MODULES|sed -e 's% %.a lib%g'`.a" - DISK_LINKOBJS= - for module in $DISK_MODULES; do - AC_MSG_NOTICE([Enabling $module DiskIO module]) - DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o" - done -fi -for fs in $DISK_MODULES none; do - case "$fs" in - DiskDaemon) - DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" - FOUND_DISKDAEMON="true" - ;; - DiskThreads) - FOUND_DISKTHREADS="true" - ;; - AIO) - FOUND_AIO="true" - ;; - Blocking) - FOUND_BLOCKING="true" - esac -done - -if test -z "$FOUND_BLOCKING" && test -n "$NEED_BLOCKING"; then - AC_MSG_NOTICE([adding Blocking, as it is used by an active, legacy Store Module]) - DISK_LIBS="$DISK_LIBS libBlocking.a" - DISK_MODULES="$DISK_MODULES Blocking" - DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o" -fi - -if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then - AC_MSG_NOTICE(["adding DiskDaemon, as it is used by an active, legacy Store Module]) - DISK_LIBS="$DISK_LIBS libDiskDaemon.a" - DISK_MODULES="$DISK_MODULES DiskDaemon" - DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" - DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o" -fi - -if test -z "$FOUND_DISKTHREADS" && test -n "$NEED_DISKTHREADS"; then - AC_MSG_NOTICE([adding DiskThreads, as it is used by an active, legacy Store Module]) - DISK_LIBS="$DISK_LIBS libDiskThreads.a" - DISK_MODULES="$DISK_MODULES DiskThreads" - DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o" -fi - -if test -z "$FOUND_AIO" && test -n "$NEED_AIO"; then - AC_MSG_NOTICE([adding AIO, as it is used by an active, legacy Store Module]) - DISK_LIBS="$DISK_LIBS libAIO.a" - DISK_MODULES="$DISK_MODULES AIO" - DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o" -fi -AC_MSG_NOTICE([IO Modules built: $DISK_MODULES]) -USE_AIOPS_WIN32=0 -USE_AIO_WIN32=0 -dnl we know what is being built. now add dependencies. -for fs in $DISK_MODULES none; do - case "$fs" in - DiskThreads) - if test -z "$with_pthreads"; then - case "$host_os" in - mingw|mingw32) - USE_AIOPS_WIN32=1 - AC_MSG_NOTICE([DiskThreads IO Module used, Windows threads support automatically enabled]) - ;; - *) - AC_MSG_NOTICE([DiskThreads IO Module used, pthreads support automatically enabled]) - with_pthreads=yes - ;; - esac - fi - ;; - AIO) - if test -z "$with_aio"; then - case "$host_os" in - mingw|mingw32) - USE_AIO_WIN32=1 - AC_MSG_NOTICE([Aio IO Module used, Windows overlapped I/O support automatically enabled]) - ;; - *) - AC_MSG_NOTICE([Aio IO Module used, aio support automatically enabled]) - with_aio=yes - ;; - esac - fi - ;; - esac -done - -dnl Check for librt -dnl We use AIO in the coss store -if test "$with_aio" = "yes"; then - dnl On some systems POSIX AIO functions are in libaio - AC_CHECK_LIB(rt, aio_read, - [DISK_LIBS="$DISK_LIBS -lrt"], - AC_CHECK_LIB(aio, aio_read,[DISK_LIBS="$DISK_LIBS -laio"]) - ) -fi - -dnl Check for pthreads -dnl We use pthreads when doing ASYNC I/O -dnl -dnl TODO: this needs to be re-coded to handle more systems and better -dnl REF: http://www.openldap.org/lists/openldap-bugs/200006/msg00070.html -dnl REF: http://autoconf-archive.cryp.to/acx_pthread.html -if test "$with_pthreads" = "yes"; then - SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" - SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" - case "$host" in - i386-unknown-freebsd*) - if test "$GCC" = "yes" ; then - if test -z "$PRESET_LDFLAGS"; then - LDFLAGS="$LDFLAGS -pthread" - fi - fi - ;; - *-solaris2.*) - if test "$GCC" = "yes" ; then - SQUID_CFLAGS="$SQUID_CFLAGS -pthreads" - SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pthreads" - AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], - [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) - else -dnl test for -lpthread first. libc version is a stub apparently on Solaris. - SQUID_CFLAGS="$SQUID_CFLAGS -lpthread" - SQUID_CXXFLAGS="$SQUID_CXXFLAGS -lpthread" - AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], - [ SQUID_CFLAGS="$SQUID_CFLAGS -lpthread -mt" - SQUID_CXXFLAGS="$SQUID_CXXFLAGS -lpthread -mt" - AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], - [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) - ]) - fi - ;; - *) - AC_CHECK_LIB(pthread, main,[DISK_LIBS="$DISK_LIBS -lpthread"], - [ AC_MSG_ERROR(pthread library required but cannot be found.) ]) - ;; - esac -fi - -AC_SUBST(DISK_MODULES) -AC_SUBST(DISK_LIBS) -AC_SUBST(DISK_PROGRAMS) -AC_SUBST(DISK_LINKOBJS) -AM_CONDITIONAL([USE_AIOPS_WIN32], [test "$USE_AIOPS_WIN32" = 1]) -AM_CONDITIONAL([USE_AIO_WIN32], [test "$USE_AIO_WIN32" = 1]) - dnl At lest one removal policy is always needed. dnl 'lru' removal policy is currently hard-coded by name for tests @@ -2081,7 +2094,6 @@ AC_HEADER_STDC AC_CHECK_HEADERS( \ - aio.h \ arpa/inet.h \ arpa/nameser.h \ assert.h \ === modified file 'doc/release-notes/release-3.1.sgml' --- doc/release-notes/release-3.1.sgml 2009-08-19 05:46:30 +0000 +++ doc/release-notes/release-3.1.sgml 2009-08-23 13:55:19 +0000 @@ -1521,6 +1521,10 @@
Better support for Linux using the external DNS helper.
The helper will now compile and work with dns_nameservers on more variants of Linux than previously.
+
Deprecated. POSIX AIO is now auto-detected and enabled. + Use --without-aio to disable, but only if you really have to. +
=== modified file 'src/DiskIO/AIO/AIODiskFile.h' --- src/DiskIO/AIO/AIODiskFile.h 2009-01-21 03:47:47 +0000 +++ src/DiskIO/AIO/AIODiskFile.h 2009-08-23 06:49:58 +0000 @@ -33,6 +33,10 @@ #ifndef SQUID_AIODISKFILE_H #define SQUID_AIODISKFILE_H +#include "config.h" + +#if USE_DISKIO_AIO + #include "DiskIO/DiskFile.h" #include "async_io.h" #include "cbdata.h" @@ -79,4 +83,5 @@ bool error_; }; +#endif /* USE_DISKIO_AIO */ #endif /* SQUID_AIODISKFILE_H */ === modified file 'src/DiskIO/AIO/AIODiskIOModule.h' --- src/DiskIO/AIO/AIODiskIOModule.h 2009-01-21 03:47:47 +0000 +++ src/DiskIO/AIO/AIODiskIOModule.h 2009-08-23 06:50:27 +0000 @@ -1,4 +1,3 @@ - /* * $Id$ * @@ -34,6 +33,10 @@ #ifndef SQUID_AIODISKIOMODULE_H #define SQUID_AIODISKIOMODULE_H +#include "config.h" + +#if USE_DISKIO_AIO + #include "DiskIO/DiskIOModule.h" class AIODiskIOModule : public DiskIOModule @@ -51,4 +54,5 @@ static AIODiskIOModule Instance; }; +#endif /* USE_DISKIO_AIO */ #endif /* SQUID_AIODISKIOMODULE_H */ === modified file 'src/DiskIO/AIO/AIODiskIOStrategy.h' --- src/DiskIO/AIO/AIODiskIOStrategy.h 2009-01-21 03:47:47 +0000 +++ src/DiskIO/AIO/AIODiskIOStrategy.h 2009-08-23 06:51:11 +0000 @@ -1,4 +1,3 @@ - /* * $Id$ * @@ -34,6 +33,10 @@ #ifndef SQUID_AIODISKIOSTRATEGY_H #define SQUID_AIODISKIOSTRATEGY_H +#include "config.h" + +#if USE_DISKIO_AIO + #include "DiskIO/DiskIOStrategy.h" #include "async_io.h" @@ -72,4 +75,5 @@ int findSlot(); }; +#endif /* USE_DISKIO_AIO */ #endif /* SQUID_AIODISKIOSTRATEGY_H */ === modified file 'src/DiskIO/AIO/aio_win32.h' --- src/DiskIO/AIO/aio_win32.h 2009-04-27 06:40:06 +0000 +++ src/DiskIO/AIO/aio_win32.h 2009-08-23 06:51:46 +0000 @@ -36,6 +36,8 @@ #include "config.h" +#if USE_DISKIO_AIO + #ifdef _SQUID_CYGWIN_ #include "squid_windows.h" #endif @@ -107,4 +109,5 @@ void aio_close(int); #endif /* _SQUID_MSWIN_ */ +#endif /* USE_DISKIO_AIO */ #endif /* __WIN32_AIO_H__ */ === modified file 'src/DiskIO/AIO/async_io.h' --- src/DiskIO/AIO/async_io.h 2009-05-03 13:02:50 +0000 +++ src/DiskIO/AIO/async_io.h 2009-08-23 06:52:27 +0000 @@ -3,6 +3,8 @@ #include "config.h" +#if USE_DISKIO_AIO + #ifdef _SQUID_WIN32_ #include "aio_win32.h" #else @@ -61,4 +63,5 @@ int aq_numpending; /* Num of pending ops */ }; -#endif +#endif /* USE_DISKIO_AIO */ +#endif /* __ASYNC_IO_H_ */