=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/ws_fileio.c,v retrieving revision 1.7 retrieving revision 1.11 diff -u -p -r1.7 -r1.11 --- OpenXM_contrib2/asir2000/io/ws_fileio.c 2009/02/07 22:41:28 1.7 +++ OpenXM_contrib2/asir2000/io/ws_fileio.c 2015/08/14 13:51:55 1.11 @@ -44,9 +44,9 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/ws_fileio.c,v 1.6 2003/03/07 06:39:57 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/ws_fileio.c,v 1.10 2015/08/06 10:01:52 fujimoto Exp $ */ -#if defined(VISUAL) || defined(MPI) +#if defined(VISUAL) || defined(__MINGW32__) || defined(MPI) #include #include"wsio.h" @@ -165,8 +165,10 @@ char* mode; (&rst->fp)->_file = -1; #endif #elif defined(MPI) -#if defined(sparc) +#if defined(sparc) || defined(__FreeBSD__) (&rst->fp)->_file = -1; +#elif defined(linux) + (&rst->fp)->_fileno = -1; #else fileno(&rst->fp) = -1; #endif @@ -202,7 +204,7 @@ STREAM* s; if (!s) return 0; -#if defined(VISUAL) +#if defined(VISUAL) || defined(__MINGW32__) size = recv(s->fildes,data,count,0); #elif defined(MPI) { @@ -227,7 +229,7 @@ STREAM* s; if (!s || !count) return 0; -#if defined(VISUAL) +#if defined(VISUAL) || defined(__MINGW32__) size = send(s->fildes,data,count,0); return size; #elif defined(MPI)