Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add casts in case types don't match (musl). Let's hope it does not break elsewhere
authorAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 19 Jul 2022 07:38:05 +0000 (09:38 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 19 Jul 2022 07:38:05 +0000 (09:38 +0200)
src/sthread/sthread.c

index 5b31764..a444e23 100644 (file)
@@ -70,7 +70,7 @@ int pthread_create(pthread_t* thread, const pthread_attr_t* attr, void* (*start_
     return raw_pthread_create(thread, attr, start_routine, arg);
 
   sthread_inside_simgrid = 1;
-  int res                = sthread_create(thread, attr, start_routine, arg);
+  int res                = sthread_create((sthread_t*)thread, attr, start_routine, arg);
   sthread_inside_simgrid = 0;
   return res;
 }
@@ -83,7 +83,7 @@ int pthread_join(pthread_t thread, void** retval)
     return raw_pthread_join(thread, retval);
 
   sthread_inside_simgrid = 1;
-  int res                = sthread_join(thread, retval);
+  int res                = sthread_join((sthread_t)thread, retval);
   sthread_inside_simgrid = 0;
   return res;
 }