bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22926] build fails on sparc-sun-solaris2.9 - FIONREAD not


From: andreast at gcc dot gnu dot org
Subject: [Bug classpath/22926] build fails on sparc-sun-solaris2.9 - FIONREAD not available
Date: 10 Aug 2005 15:19:02 -0000

------- Additional Comments From andreast at gcc dot gnu dot org  2005-08-10 
15:19 -------
This include helps to build it:

Index: native/jni/java-net/gnu_java_net_PlainSocketImpl.c
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/java-net/gnu_java_net_PlainSocketImpl.c,v
retrieving revision 1.7
diff -u -r1.7 gnu_java_net_PlainSocketImpl.c
--- native/jni/java-net/gnu_java_net_PlainSocketImpl.c  2 Jul 2005 20:32:55
-0000       1.7
+++ native/jni/java-net/gnu_java_net_PlainSocketImpl.c  10 Aug 2005 15:16:01 
-0000
@@ -50,6 +50,7 @@
 
 #include "target_native.h"
 #ifndef WITHOUT_NETWORK
+#include "target_native_file.h"  /* Get FIONREAD on Solaris.  */
 #include "target_native_network.h"
 #endif /* WITHOUT_NETWORK */

This is one possibility, another would be to put the logic from
target_generic_file.h into target_generic_network.h too:


#ifdef HAVE_SYS_IOCTL_H
    #define BSD_COMP /* Get FIONREAD on Solaris2 */
    #include <sys/ioctl.h>
  #endif
  #ifdef HAVE_SYS_FILIO_H /* Get FIONREAD on Solaris 2.5 */
    #include <sys/filio.h>
  #endif
#endif

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22926




reply via email to

[Prev in Thread] Current Thread [Next in Thread]