X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/988f1ee585120cbb07d93e446917648488a76e36..3203ed1f4fb6f4617e94d5351661ba07e8b8f833:/src/instr/instr_TI_trace.c diff --git a/src/instr/instr_TI_trace.c b/src/instr/instr_TI_trace.c index ef558321b1..3a1ee51b29 100644 --- a/src/instr/instr_TI_trace.c +++ b/src/instr/instr_TI_trace.c @@ -1,10 +1,10 @@ -/* Copyright (c) 2010-2014. The SimGrid Team. +/* Copyright (c) 2010-2015. The SimGrid Team. * All rights reserved. */ /* 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 "instr/instr_private.h" +#include "src/instr/instr_private.h" #include "xbt/virtu.h" /* sg_cmdline */ #include "xbt/xbt_os_time.h" #include "simgrid/sg_config.h" @@ -13,6 +13,10 @@ #include #include +#ifdef WIN32 +#include // _mkdir +#endif + XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_TI_trace, instr_trace, "tracing event system"); extern FILE *tracing_file; @@ -73,7 +77,7 @@ void print_TICreateContainer(paje_event_t event) char *filename = bprintf("%s/%f_%s.txt", folder_name, prefix, ((createContainer_t) event->data)->container->name); #ifdef WIN32 - mkdir(folder_name); + _mkdir(folder_name); #else mkdir(folder_name, S_IRWXU | S_IRWXG | S_IRWXO); #endif