Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make tracing work better with gatherv and scatterv
[simgrid.git] / src / mc / mc_client.cpp
index 6109240b25a88c83256020930293e331a0a31abe..5ed0cf3cd9e9a13e606917b131c1eebfd067a38f 100644 (file)
@@ -4,9 +4,8 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include <stdlib.h>
-#include <errno.h>
-#include <error.h>
+#include <cstdlib>
+#include <cerrno>
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -37,7 +36,7 @@ void MC_client_init(void)
     return;
   }
 
-  char* fd_env = getenv(MC_ENV_SOCKET_FD);
+  char* fd_env = std::getenv(MC_ENV_SOCKET_FD);
   if (!fd_env)
     xbt_die("MC socket not found");