make dnsreplay_mindex compile again
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@572
d19b8d6e-7fed-0310-83ef-
9ca221ded41b
#include "dnspcap.hh"
#include "sstuff.hh"
#include "anadns.hh"
+
+// this is needed because boost multi_index also uses 'L', as do we (which is sad enough)
+#undef L
+
#include <arpa/nameser.h>
#include <set>
#include <deque>
+
#include <boost/format.hpp>
#include <boost/utility.hpp>
#include <boost/multi_index_container.hpp>
template<class EventKey, class EventVal>int MTasker<EventKey,EventVal>::waitEvent(const EventKey &key, EventVal *val, unsigned int timeout)
{
+ if(d_waiters.count(key)) { // there was already an exact same waiter
+ return -1;
+ }
+
Waiter w;
w.context=new ucontext_t;
w.ttd= timeout ? time(0)+timeout : 0;
w.tid=d_tid;
- if(d_waiters.count(key)) { // there was already an exact same waiter
- return -1;
- }
w.key=key;
d_waiters.insert(w);
if(!((counter++)%100))
MT->makeThread(houseKeeping,0,"housekeeping");
- if(statsWanted)
+ if(statsWanted) {
doStats();
+ }
Utility::socklen_t addrlen=sizeof(fromaddr);
int d_len;