Index: trunk/MagicSoft/Cosy/candrv/network.h
===================================================================
--- trunk/MagicSoft/Cosy/candrv/network.h	(revision 4076)
+++ trunk/MagicSoft/Cosy/candrv/network.h	(revision 4105)
@@ -1,7 +1,11 @@
-#ifndef NETWORK_H
-#define NETWORK_H
+#ifndef COSY_Network
+#define COSY_Network
 
+#ifndef COSY_CanOpen
 #include "canopen.h"
+#endif
+#ifndef COSY_NodeDrv
 #include "nodedrv.h"
+#endif
 
 class Network : public CanOpen
Index: trunk/MagicSoft/Cosy/candrv/nodedrv.cc
===================================================================
--- trunk/MagicSoft/Cosy/candrv/nodedrv.cc	(revision 4076)
+++ trunk/MagicSoft/Cosy/candrv/nodedrv.cc	(revision 4105)
@@ -48,5 +48,5 @@
 #include <iostream.h>
 
-#include <TTimer.h>
+//#include <TTimer.h>
 
 #include "MTime.h"
@@ -530,5 +530,5 @@
             const Double_t t0 = t+fGuardTime;
 
-            while (!HasStopFlag() && t<t0 && t<fTimeoutTime)
+            while (!HasStopFlag() && (double)t<t0 && (double)t<fTimeoutTime)
             {
                 usleep(5);
@@ -540,5 +540,5 @@
             //cout << "-g-> " << (Long_t)((t-t0)*1000)<< endl;
 
-            if (t<fTimeoutTime)
+            if ((double)t<fTimeoutTime)
                 continue;
 
Index: trunk/MagicSoft/Cosy/candrv/nodedrv.h
===================================================================
--- trunk/MagicSoft/Cosy/candrv/nodedrv.h	(revision 4076)
+++ trunk/MagicSoft/Cosy/candrv/nodedrv.h	(revision 4105)
@@ -1,8 +1,12 @@
-#ifndef NODEDRV_H
-#define NODEDRV_H
+#ifndef COSY_NodeDrv
+#define COSY_NodeDrv
 
+#ifndef ROOT_TString
 #include <TString.h>
+#endif
 
+#ifndef COSY_Log
 #include "log.h"
+#endif
 
 #ifdef __CINT__
Index: trunk/MagicSoft/Cosy/candrv/vmodican.cc
===================================================================
--- trunk/MagicSoft/Cosy/candrv/vmodican.cc	(revision 4076)
+++ trunk/MagicSoft/Cosy/candrv/vmodican.cc	(revision 4105)
@@ -934,5 +934,5 @@
 //  and switch the can bus communication on
 //
-VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, 10)//: CanDriver(dev, baud)
+VmodIcan::VmodIcan(const char *dev, const int baud, MLog &out) : Log(out), MThread(false, 1)//: CanDriver(dev, baud)
 {
     //
Index: trunk/MagicSoft/Cosy/candrv/vmodican.h
===================================================================
--- trunk/MagicSoft/Cosy/candrv/vmodican.h	(revision 4076)
+++ trunk/MagicSoft/Cosy/candrv/vmodican.h	(revision 4105)
@@ -1,4 +1,4 @@
-#ifndef VMODICAN_H
-#define VMODICAN_H
+#ifndef COSY_VmodIcan
+#define COSY_VmodIcan
 
 #include <pthread.h>
@@ -16,5 +16,7 @@
 #endif
 
+#ifndef COSY_MThread
 #include "MThread.h"
+#endif
 
 class Message;
