This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gnu/java/nio/natSocketChannelImpl.cc (was: fixinc Solaris 2.5.1)


Arno,

> this sure is not the right thing to do, just to let you know
> where the problem is.

fixinc deals with system headers, not GNU Java code.


Index: gnu/java/nio/natSocketChannelImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/nio/natSocketChannelImpl.cc,v
retrieving revision 1.4
diff -c -r1.4 natSocketChannelImpl.cc
*** gnu/java/nio/natSocketChannelImpl.cc        21 Feb 2003 08:19:34 -0000      1.4
--- gnu/java/nio/natSocketChannelImpl.cc        25 May 2003 15:11:57 -0000
***************
*** 143,149 ****
--- 143,153 ----
  gnu::java::nio::SocketChannelImpl::SocketRead (jint fd, jbyteArray data,
                                                 jint offset, jint length)
  {
+ #if defined(__sun__) /* Arno */
+   int result = ::recv (fd, (char *)data, offset, length);
+ #else
    int result = ::recv (fd, data, offset, length);
+ #endif
  
    if (result < 0)
      {
***************
*** 158,164 ****
--- 162,172 ----
  gnu::java::nio::SocketChannelImpl::SocketWrite (jint fd, jbyteArray data,
                                                  jint offset, jint length)
  {
+ #if defined(__sun__) /* Arno */
+   int result = ::send (fd, (const char *)data, offset, length);
+ #else
    int result = ::send (fd, data, offset, length);
+ #endif
  
    if (result < 0)
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]