  #else
  	packet->time_usecs = implement_me("implement me for your platform");
  #endif  /* defined(__OpenBSD__) */
-diff -x '.*sw?' -Naur packetdrill.orig/gtests/net/packetdrill/platforms.h packetdrill/gtests/net/packetdrill/platforms.h
---- packetdrill.orig/gtests/net/packetdrill/platforms.h	2014-07-29 13:09:54.431820906 +0400
-+++ packetdrill/gtests/net/packetdrill/platforms.h	2014-07-29 13:04:10.718497491 +0400
+diff -Naur packetdrill.orig/gtests/net/packetdrill/platforms.h packetdrill/gtests/net/packetdrill/platforms.h
+--- packetdrill.orig/gtests/net/packetdrill/platforms.h	2014-08-18 12:39:13.610794246 +0400
++++ packetdrill/gtests/net/packetdrill/platforms.h	2014-08-18 12:38:05.174129210 +0400
 @@ -92,5 +92,22 @@
  
  #endif  /* __NetBSD__ */

 	die("unable to find hw address for %s\n", name);
 }
 
diff -x '.*sw?' -Naur packetdrill.orig/gtests/net/packetdrill/logging.h packetdrill/gtests/net/packetdrill/logging.h
--- packetdrill.orig/gtests/net/packetdrill/logging.h	2014-07-29 13:09:54.431820906 +0400
+++ packetdrill/gtests/net/packetdrill/logging.h	2014-07-29 13:04:10.718497491 +0400
@@ -28,7 +28,7 @@
 #include "types.h"
 

 
 	return is_sleeping;
+#else 
+	struct schedee *scde = &((pthread_t) thread_id)->schedee;
+	return scde->waiting && !scde->ready && !scde->active;
+#endif
 }
 
