1 /* portable -- header loading to write portable code within SimGrid */
3 /* Copyright (c) 2004, 2016. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef SIMGRID_PORTABLE_H
9 #define SIMGRID_PORTABLE_H
11 #include "simgrid_config.h" /* what was compiled in? */
12 #include "src/internal_config.h" /* some information about the environment */
27 #ifdef HAVE_SYS_PARAM_H
28 # include <sys/param.h>
30 #ifdef HAVE_SYS_SYSCTL_H
31 # include <sys/sysctl.h>
40 #define EWOULDBLOCK WSAEWOULDBLOCK
44 #define EINPROGRESS WSAEINPROGRESS
48 #define ETIMEDOUT WSAETIMEDOUT
75 /* What we need to extract the backtrace in exception handling code */
76 #ifdef HAVE_EXECINFO_H
77 # include <execinfo.h>
80 #endif /* SIMGRID_PORTABLE_H */