1 /* portable -- header loading to write portable code */
2 /* loads much more stuff than sysdep.h since the latter is in public interface*/
4 /* Copyright (c) 2004-2010, 2012-2015. The SimGrid Team.
5 * All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
10 #ifndef SIMGRID_PORTABLE_H
11 #define SIMGRID_PORTABLE_H
13 #include "simgrid_config.h" /* what was compiled in? */
14 #include "src/internal_config.h" /* some information about the environment */
29 #ifdef HAVE_SYS_PARAM_H
30 # include <sys/param.h>
32 #ifdef HAVE_SYS_SYSCTL_H
33 # include <sys/sysctl.h>
44 #define EWOULDBLOCK WSAEWOULDBLOCK
48 #define EINPROGRESS WSAEINPROGRESS
52 #define ETIMEDOUT WSAETIMEDOUT
75 # include <sys/time.h>
86 /* What we need to extract the backtrace in exception handling code */
87 #ifdef HAVE_EXECINFO_H
88 # include <execinfo.h>
91 #endif /* SIMGRID_PORTABLE_H */