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 "src/internal_config.h"
31 #ifdef HAVE_SYS_PARAM_H
32 # include <sys/param.h>
34 #ifdef HAVE_SYS_SYSCTL_H
35 # include <sys/sysctl.h>
46 #define EWOULDBLOCK WSAEWOULDBLOCK
50 #define EINPROGRESS WSAEINPROGRESS
54 #define ETIMEDOUT WSAETIMEDOUT
68 #ifdef HAVE_SYS_STAT_H
69 # include <sys/stat.h>
81 # include <sys/time.h>
92 /* prototype of GNU functions */
93 #if (defined(__GNUC__) && !defined(__cplusplus))
94 XBT_PUBLIC(int) asprintf(char **ptr, const char *fmt, /*args */ ...);
95 XBT_PUBLIC(int) vasprintf(char **ptr, const char *fmt, va_list ap);
99 * What we need to extract the backtrace in exception handling code
101 #ifdef HAVE_EXECINFO_H
102 # include <execinfo.h>
105 #endif /* SIMGRID_PORTABLE_H */