X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b00dee55791fb860e475390a184cd439bf85042d..ef0988cf8eb71517681c60a18a417f185bd602c4:/src/win32/config.h diff --git a/src/win32/config.h b/src/win32/config.h index d5b937b2ce..47d03afe95 100644 --- a/src/win32/config.h +++ b/src/win32/config.h @@ -17,13 +17,16 @@ #if defined(_XBT_BORLAND_COMPILER) # include +#elif defined(__GNUC__) + /* data comes from autoconf when using gnuc (cross-compiling?) */ +# include "gras_config.h" #elif defined(_XBT_VISUALC_COMPILER) # include # else # error "Unknown compiler - please report the problems to the main simgrid mailing list (http://gforge.inria.fr/mail/?group_id=12)" #endif - +typedef int socklen_t; #define tcp_read( s, buf, len ) recv( s, buf, len, 0 ) #define tcp_write( s, buf, len ) send( s, buf, len, 0 ) #define ioctl( s, c, a ) ioctlsocket( (s), (c), (a) ) @@ -74,6 +77,6 @@ const char *gras_wsa_err2string(int errcode); #define S_IWGRP 0 - + #endif /* #ifndef __XBT_WIN32_CONFIG_H__ */