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 */
33 #ifdef HAVE_SYS_PARAM_H
34 # include <sys/param.h>
36 #ifdef HAVE_SYS_SYSCTL_H
37 # include <sys/sysctl.h>
48 #define EWOULDBLOCK WSAEWOULDBLOCK
52 #define EINPROGRESS WSAEINPROGRESS
56 #define ETIMEDOUT WSAETIMEDOUT
70 #ifdef HAVE_SYS_STAT_H
71 # include <sys/stat.h>
83 # include <sys/time.h>
94 /* What we need to extract the backtrace in exception handling code */
95 #ifdef HAVE_EXECINFO_H
96 # include <execinfo.h>
99 #endif /* SIMGRID_PORTABLE_H */