X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b48a2fd4e7621cbc0f96e39bf7db3a0263232908..dfbcdfb4d3e827babc166137fc8fe7083e10d499:/src/portable.h diff --git a/src/portable.h b/src/portable.h index 3596f340c5..835de982df 100644 --- a/src/portable.h +++ b/src/portable.h @@ -34,6 +34,7 @@ # include /* TCP_NODELAY */ # include /* getprotobyname() */ # include /* inet_ntoa() */ +# include /* sometimes required for fd_set */ # endif #ifdef HAVE_WINSOCK2_H @@ -133,6 +134,13 @@ const char *gras_wsa_err2string(int errcode); # include "xbt/context_win32.h" /* Manual reimplementation for prehistoric platforms */ #endif +/**** + **** Signals + ****/ +#ifdef HAVE_SIGNAL_H +# include +#endif + /**** **** string handling (parts from http://www.ijs.si/software/snprintf/) ****/ @@ -177,10 +185,10 @@ extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap); # include #endif -/* - * Some debugging functions. Can't we find a better place for this?? - */ +/**** + **** Some debugging functions. Can't we find a better place for this?? + ****/ void hexa_print(const char*name, unsigned char *data, int size); -const char *hexa_str(unsigned char *data, int size); +const char *hexa_str(unsigned char *data, int size, int downside); #endif /* GRAS_PORTABLE_H */