//#define NOISEDEBUG
#include "async_io.hpp"
+#include <asyncio_config.hpp>
#include <list>
#include <vector>
#include <boost/bind.hpp>
-#include <signalfunc.hpp>
-#include <timefunc.hxx>
+#ifdef HAVE_LIBI2NCOMMON
+# include <signalfunc.hpp>
+//# include <timefunc.hxx>
+#else
+#include <signal.h>
+#endif
#include <iostream>
: m_count_active_loops(0)
, m_count_stop_requests(0)
{
+#ifdef HAVE_LIBI2NCOMMON
SystemTools::ignore_signal( SystemTools::Signal::PIPE );
+#else
+ signal( SIGPIPE, SIG_IGN );
+#endif
} // eo Backend::Backend
Backend::~Backend()
{
+#ifdef HAVE_LIBI2NCOMMON
SystemTools::restore_signal_handler( SystemTools::Signal::PIPE );
+#else
+ signal( SIGPIPE, SIG_DFL );
+#endif
} // eo Backend::~Backend()
/**