Fixing benchmark loopback to work with new v2's of modulators.
[debian/gnuradio] / omnithread / posix.cc
index b82e86df3f26b32efb8d33045b4bb19b3bf0d735..5574a8a0dd4206f1f1aad326d7d1b73b1c0a955e 100644 (file)
 #include <stdlib.h>
 #include <errno.h>
 #include <time.h>
-#include <omnithread.h>
+#include <gnuradio/omnithread.h>
+
+#if (PthreadDraftVersion == 0)
+#error "PthreadDraftVersion not defined.  If not sure, define it to 10"
+#endif
 
 #ifdef HAVE_NANOSLEEP
 #undef NoNanoSleep
 #endif
 #endif
 
+#if 1
 #define DB(x) // x
-//#include <iostream.h> or #include <iostream> if DB is on.
+#else
+#define DB(x) x
+#include <iostream>
+using std::cerr;
+using std::endl;
+#endif
 
 #if (PthreadDraftVersion <= 6)
 #define ERRNO(x) (((x) != 0) ? (errno) : 0)