]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Compilation with Root6
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Oct 2013 12:59:38 +0000 (12:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Oct 2013 12:59:38 +0000 (12:59 +0000)
MONITOR/AliRecoServerThread.cxx

index 551871e289854e7e0cb09bd8c8f128225411b13a..1275a3c27e29ebd6c08a83fad6c54bdcd47b28c3 100644 (file)
@@ -6,6 +6,7 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#include <RVersion.h>
 #include <stdlib.h>
 
 #include <zmq.hpp>
@@ -108,8 +109,9 @@ void AliRecoServerThread::SendStreamerInfos(TMessage* mess, zmq::socket_t *sock)
          delete minilist;
          if (messinfo.GetStreamerInfos())
             messinfo.GetStreamerInfos()->Clear();
-           
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)           
            messinfo.SetLength();
+#endif
            
           int bufsize = messinfo.Length();
                char* buf = (char*) malloc(bufsize * sizeof(char));
@@ -136,8 +138,9 @@ void AliRecoServerThread::SendEvent(AliESDEvent* event, zmq::socket_t* socket)
   TMessage::EnableSchemaEvolutionForAll(kTRUE);
   SendStreamerInfos(&tmess, socket);
 
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)           
   tmess.SetLength();
-
+#endif
   int bufsize = tmess.Length();
   char* buf = (char*) malloc(bufsize * sizeof(char));
   memcpy(buf, tmess.Buffer(), bufsize);