Remove dependency for {unistd,stdlib}.h in vcore.h (XCC)
[akaros.git] / tests / pthread_barrier_test.c
index f8d7b53..339fc20 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <pthread.h>
 #include <stdlib.h>
-#include <parlib.h>
+#include <parlib/parlib.h>
 #include <unistd.h>
 #include <sys/time.h>
 
@@ -47,7 +47,7 @@ int main(int argc, char** argv)
        if (nr_vcores) {
                /* Only do the vcore trickery if requested */
                pthread_can_vcore_request(FALSE);       /* 2LS won't manage vcores */
-               pthread_lib_init();                                     /* gives us one vcore */
+               pthread_mcp_init();                                     /* gives us one vcore */
                vcore_request(nr_vcores - 1);           /* ghetto incremental interface */
                for (int i = 0; i < nr_vcores; i++) {
                        printd("Vcore %d mapped to pcore %d\n", i,