-rm -f *.o *~ pdns_recursor rec_control optional/*.o
dep:
- $(CC) $(CXXFLAGS) -MM *.cc *.hh > $@
+ $(CXX) $(CXXFLAGS) -MM *.cc *.hh > $@
-include dep
#include "misc.hh"
#include <boost/lexical_cast.hpp>
#include "syncres.hh"
+
+#if defined(__sun__) && defined(__svr4__)
#include <port.h>
#include <sys/port_impl.h>
+#endif
+
using namespace boost;
using namespace std;
ret.append(1, (char)(i->second - i->first));
ret.append(label.c_str() + i->first, i->second - i->first);
}
- ret.append(1,0);
+ ret.append(1,(char)0);
return ret;
}