]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Dec 2009 01:13:35 +0000 (14:13 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Dec 2009 01:13:35 +0000 (14:13 +1300)
Remove the following ./configure warnings:

  conftest.cpp:34:1: warning: "USE_DISKIO_AIO" redefined
  conftest.cpp:35:1: warning: "USE_DISKIO_DISKTHREADS" redefined

The patch allows Squid v3.1 to build on RHEL 5.4 which has autoconf v2.59.
Without the patch, USE_DISKIO_AIO is zero but the corresponding AIO files
are compiled, leading to errors. I do not know if other platforms are
affected.

configure.in

index 51edf7778b139849527e679faba13320fb708f75..ace5fe14c543675eee028a3f9bbddcf132d7163d 100644 (file)
@@ -479,8 +479,6 @@ AC_ARG_ENABLE(disk-io,
 fi ])
 
 dnl Some autoconf.h defines we might enable later...
-AC_DEFINE(USE_DISKIO_AIO, 0, [Whether POSIX AIO support is needed. Automatic])
-AC_DEFINE(USE_DISKIO_DISKTHREADS, 0, [Whether pthreads support is needed. Automatic])
 USE_AIOPS_WIN32=0
 use_aio=
 use_diskthreads=
@@ -646,6 +644,7 @@ for module in $MAYBE_DISK_MODULES none; do
                ;;
          esac
        else
+         AC_DEFINE(USE_DISKIO_AIO, 0, [Whether POSIX AIO support is needed. Automatic])
          AC_MSG_NOTICE([AIO DiskIO Module disabled. Missing POSIX AIO support.])
        fi
        ;;