From af0b76c237b3c0dfbdef8bfc7d0262622c8b19cc Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 22 Mar 2007 16:31:00 +0000 Subject: [PATCH] Factorize the definition of socklen_t between all compilers git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3339 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/win32/compiler/borland.h | 1 - src/win32/compiler/visualc.h | 1 - src/win32/config.h | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/win32/compiler/borland.h b/src/win32/compiler/borland.h index 5230c6e026..840d627af5 100644 --- a/src/win32/compiler/borland.h +++ b/src/win32/compiler/borland.h @@ -390,7 +390,6 @@ the double. For now, GRAS requires the structures to be compacted. */ /* types */ typedef unsigned int uint32_t; -typedef int socklen_t; /* Choose setjmp as exception implementation */ #ifndef __EX_MCTX_SJLJ__ diff --git a/src/win32/compiler/visualc.h b/src/win32/compiler/visualc.h index 699003dd76..bc84a0b2a2 100644 --- a/src/win32/compiler/visualc.h +++ b/src/win32/compiler/visualc.h @@ -396,7 +396,6 @@ the double. For now, GRAS requires the structures to be compacted. */ /* types */ typedef unsigned int uint32_t; -typedef int socklen_t; /* Choose setjmp as exception implementation */ #ifndef __EX_MCTX_SJLJ__ diff --git a/src/win32/config.h b/src/win32/config.h index 4ba03b559b..47d03afe95 100644 --- a/src/win32/config.h +++ b/src/win32/config.h @@ -26,7 +26,7 @@ # 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) ) -- 2.20.1