#endif
#if !defined(CPU_SET)
-#define CPU_SET(cpu, set) (void)0
+#define CPU_SET(cpunum, cpuset) CpuSet(cpunum, cpuset)
+inline void CpuSet(int, const cpu_set_t *) {}
#endif
#if !defined(CPU_CLR)
#endif
#if !defined(CPU_ISSET)
-#define CPU_ISSET(cpu, set) false
+#define CPU_ISSET(cpunum, cpuset) CpuIsSet(cpunum, cpuset)
+inline bool CpuIsSet(int, const cpu_set_t *) { return false; }
#endif
// glibc prior to 2.6 lacks CPU_COUNT
using Entries = std::list<Entry, PoolingAllocator<Entry> >;
using EntriesIterator = typename Entries::iterator;
- using IndexItem = std::pair<Key, EntriesIterator>;
+ using IndexItem = std::pair<const Key, EntriesIterator>;
/// key:entry_position mapping for fast entry lookups by key
using Index = std::unordered_map<Key, EntriesIterator, std::hash<Key>, std::equal_to<Key>, PoolingAllocator<IndexItem> >;
using IndexIterator = typename Index::iterator;
parse_CpuAffinityMap(CpuAffinityMap **const cpuAffinityMap)
{
#if !HAVE_CPU_AFFINITY
+ (void)cpuAffinityMap;
debugs(3, DBG_CRITICAL, "FATAL: Squid built with no CPU affinity " <<
"support, do not set 'cpu_affinity_map'");
self_destruct();
if (fd_table[fd].flags.nonblocking && fd_table[fd].type != FD_MSGHDR) {
while (FD_READ_METHOD(fd, buf, SQUID_TCP_SO_RCVBUF) > 0) {};
}
+#else
+ (void)fd;
#endif
}
#if USE_FORW_VIA_DB
-using HeaderValueCountsElement = std::pair<SBuf, uint64_t>;
+using HeaderValueCountsElement = std::pair<const SBuf, uint64_t>;
/// counts the number of header field value occurrences
using HeaderValueCounts = std::unordered_map<SBuf, uint64_t, std::hash<SBuf>, std::equal_to<SBuf>, PoolingAllocator<HeaderValueCountsElement> >;
action="${1}"
config="${2}"
-base="`dirname ${0}`"
# cache_file may be set by environment variable
configcache=""
# do not build any of the install's ...
#
# eval is need to correctly handle quoted arguments
- eval "$base/../configure ${DISTCHECK_CONFIGURE_FLAGS} ${configcache}" \
- 2>&1 && \
- ${MAKE:-make} ${pjobs} ${MAKETEST} 2>&1
+if test -x "../configure" ; then
+ base="."
+else
+ base="`dirname ${0}`"
+fi
+
+echo "PWD: $PWD"
+echo "$base/../configure ${DISTCHECK_CONFIGURE_FLAGS} ${configcache} ..."
+eval "$base/../configure ${DISTCHECK_CONFIGURE_FLAGS} ${configcache}" \
+ 2>&1 && \
+ ${MAKE:-make} ${pjobs} ${MAKETEST} 2>&1
# Remember and then explicitly return the result of the last command
# to the script caller. Probably not needed on most or all platforms.