diff --git a/CUtils/c_sources/myrand.c b/CUtils/c_sources/myrand.c index 4590e9af829446a4f91571a904082e20dea6c68e..8585afdfd667ea2b3e75dc597953af8ab2367c9a 100644 --- a/CUtils/c_sources/myrand.c +++ b/CUtils/c_sources/myrand.c @@ -21,6 +21,7 @@ int myrand_init(unsigned long value) { #ifdef MT init_genrand_mt(&rdata, value); #endif + return 0; } static void init() __attribute__((constructor)); diff --git a/CUtils/c_sources/resampling.c b/CUtils/c_sources/resampling.c index d9d5b8861471bcbe75a0db2921055e065d8fd2ad..2525d9d63aab39588c2530036e38ef99ce8f7f03 100644 --- a/CUtils/c_sources/resampling.c +++ b/CUtils/c_sources/resampling.c @@ -4,6 +4,8 @@ #include <strings.h> #include <stdlib.h> #include <pthread.h> +#include <sys/types.h> +#include <unistd.h> #include "myrand.h" struct chi2s { @@ -163,7 +165,7 @@ static void *resampling_worker(void* param) { int resampling_chi2(const struct tree *tree, const struct cc *lcc, int prolonge, int nb_permutations, datatype_t *results, int parallel) { - +#if defined(DEBUG) && 0 FILE* dump=fopen("/tmp/dump", "w+"); fwrite(tree, sizeof(struct tree), 1, dump); fwrite(tree->ld, sizeof(int), tree->nb_leaves, dump); @@ -173,7 +175,7 @@ int resampling_chi2(const struct tree *tree, const struct cc *lcc, int prolonge, fwrite(&prolonge, sizeof(int), 1, dump); fwrite(&nb_permutations, sizeof(int), 1, dump); fclose(dump); - +#endif char* envvar=getenv("ALTREE_PARALLEL"); if (envvar) { parallel=atoi(envvar);