]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1178: ufsdump will not compile with --enable-epoll configure option
authorserassio <>
Tue, 8 Feb 2005 05:17:54 +0000 (05:17 +0000)
committerserassio <>
Tue, 8 Feb 2005 05:17:54 +0000 (05:17 +0000)
usfdump doesn't depend from comm_epoll.cc

With this patch the selection of epoll during configure is now similar to
other comm loops type.

configure.in
src/Makefile.am
src/comm_epoll.cc

index 648a74461288b9d7eb31e77d23f2d3c308f64555..f54a83e5dfd149a0a094a35c405411e4730e092d 100644 (file)
@@ -3,7 +3,7 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.368 2005/01/06 10:44:39 serassio Exp $
+dnl  $Id: configure.in,v 1.369 2005/02/07 22:17:54 serassio Exp $
 dnl
 dnl
 dnl
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc])
 AC_CONFIG_AUX_DIR(cfgaux)
 AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS)
 AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.368 $)dnl
+AC_REVISION($Revision: 1.369 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -985,8 +985,6 @@ esac
 ])
 
 dnl Enable epoll()
-AM_CONDITIONAL(USE_EPOLL, false)
-AC_DEFINE(USE_EPOLL,0,[Use epoll type polling])
 AC_ARG_ENABLE(epoll,
 [ --enable-epoll          Enable epoll() support.
   --disable-epoll        Disable epoll() support. ],
@@ -1000,7 +998,6 @@ AC_ARG_ENABLE(epoll,
                 EPOLL_LIBS="-lepoll"
         fi
         AC_SUBST(EPOLL_LIBS)
-        AM_CONDITIONAL(USE_EPOLL, true)
     ;;
   no)
     echo "Forcing epoll() to be disabled"
index a21ea03d5d5aee76a20e22b0f9ab2816b20907a3..a2885697efe7901cc0c357192697b2e4d7f94f42 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.am,v 1.104 2005/02/06 13:19:39 serassio Exp $
+#  $Id: Makefile.am,v 1.105 2005/02/07 22:17:55 serassio Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -155,13 +155,6 @@ else
 ARP_ACL_SOURCE =
 endif
 
-EPOLL_ALL_SOURCE = comm_epoll.cc
-if USE_EPOLL
-EPOLL_SOURCE = $(EPOLL_ALL_SOURCE)
-else
-EPOLL_SOURCE = 
-endif
-
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
 
@@ -247,7 +240,6 @@ EXTRA_squid_SOURCES = \
        dns.cc \
        dnsserver.cc \
        dns_internal.cc \
-       $(EPOLL_ALL_SOURCE) \
        htcp.cc \
        htcp.h \
        $(IDENT_ALL_SOURCE) \
@@ -366,6 +358,7 @@ squid_SOURCES = \
        comm.h \
        comm_select.cc \
        comm_poll.cc \
+        comm_epoll.cc \
        comm_kqueue.cc \
        CommRead.h \
        ConfigOption.cc \
@@ -378,7 +371,6 @@ squid_SOURCES = \
        disk.cc \
        $(DISKIO_SOURCE) \
        $(DNSSOURCE) \
-       $(EPOLL_SOURCE) \
        enums.h \
        errorpage.cc \
        $(ESI_SOURCE) \
@@ -636,6 +628,7 @@ ufsdump_SOURCES = debug.cc \
        comm.h \
        comm_select.cc \
        comm_poll.cc \
+        comm_epoll.cc \
        comm_kqueue.cc \
        ConfigOption.cc \
        defines.h \
index 2ed3ccf3af17a3c781cf6e801b313b91722f090d..da61fa68b9e345616f49d69e3c1cdc27c2a165b5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm_epoll.cc,v 1.6 2004/12/21 18:06:33 hno Exp $
+ * $Id: comm_epoll.cc,v 1.7 2005/02/07 22:17:55 serassio Exp $
  *
  * DEBUG: section 5    Socket functions
  *
@@ -56,6 +56,8 @@
 #include "Store.h"
 #include "fde.h"
 
+#ifdef USE_EPOLL
+
 #define DEBUG_EPOLL 0
 
 #include <sys/epoll.h>
@@ -303,3 +305,4 @@ comm_quick_poll_required(void)
     max_poll_time = 100;
 }
 
+#endif /* USE_EPOLL */