Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid a name conflict with /usr/include/sys/wait.h on mac (at least)
[simgrid.git] / examples / msg / actions / actions.c
index b612cc6..41d35f9 100644 (file)
@@ -9,7 +9,7 @@
 #include <stdlib.h>
 #include "msg/msg.h"            /* Yeah! If you want to use msg, you need to include msg/msg.h */
 #include "xbt.h"                /* calloc, printf */
-
+#include "simgrid_config.h"     /* getline */
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
                  "Messages specific for this msg example");
@@ -131,7 +131,7 @@ static void Irecv(xbt_dynar_t action)
 }
 
 
-static void wait(xbt_dynar_t action)
+static void wait_action(xbt_dynar_t action)
 {
   char *name = xbt_str_join(action, " ");
   char task_name[80];
@@ -438,7 +438,7 @@ int main(int argc, char *argv[])
   MSG_action_register("Isend", Isend);
   MSG_action_register("recv", recv);
   MSG_action_register("Irecv", Irecv);
-  MSG_action_register("wait", wait);
+  MSG_action_register("wait", wait_action);
   MSG_action_register("barrier", barrier);
   MSG_action_register("bcast", bcast);
   MSG_action_register("reduce", reduce);