X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/892e136b3be07e45110a5a2db2889470386e954a..4b29a552920278f287dca17fba2a33f7f30f4abc:/src/msg/msg_synchro.cpp diff --git a/src/msg/msg_synchro.cpp b/src/msg/msg_synchro.cpp index fa6cad5cea..fa46da9ba5 100644 --- a/src/msg/msg_synchro.cpp +++ b/src/msg/msg_synchro.cpp @@ -4,6 +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 + #include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/synchro_core.h" @@ -44,8 +46,8 @@ void MSG_sem_release(msg_sem_t sem) { simcall_sem_release(sem); } -void MSG_sem_get_capacity(msg_sem_t sem) { - simcall_sem_get_capacity(sem); +int MSG_sem_get_capacity(msg_sem_t sem) { + return simcall_sem_get_capacity(sem); } void MSG_sem_destroy(msg_sem_t sem) {