On 2012-07-13, Jean-Pierre Flori <jpfl...@gmail.com> wrote: > ------=_Part_189_23958284.1342197368904 > Content-Type: text/plain; charset=ISO-8859-1 > > > > On Friday, July 13, 2012 12:58:21 PM UTC+2, Dima Pasechnik wrote: >> >> But WINSOCKAPI should not be defined on Cygwin, in the first place. >> > I guess it's a problem with ECL which defines it unconditionally, rather > than only on (genuine) Windows . > >> In my sys/types the fd_set relevant ifdef does not care about >> _WINSOCKAPI_. Indeed, it is >> # if !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined >> (__USE_W32_SOCKETS)) >> > Oh, I see, I have: > # if !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined > (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
anyhow, we can patch ECL to remove that #define _WINSOCKAPI_. It is clearly meant for either the native Windows, or (perhaps) mingw support. > > I had freshly installed Cygwin 1.7.15 last week , but also installed a CVS > version at some point because their gcc is too broken. With the gcc4 package I also have gcc 4.5.3, without the need to resort to anything really unstable like a CVS version. (The latter can be very broken...) Dima > So that may be the source of the discrepancey in types.h > It could also be that I'm using the gcc4 package version 4.5.3 rather than > 4.3.4 (if by any chance the types.h file belongs to that package). -- -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org