Cygwin port patches

Jerome Marc marcjero@yahoo.com
Tue Apr 30 15:23:00 GMT 2002


Here are the 2 patches needed to compile and use
libgcj within cygwin. I hope they won't break anything
!

-----------------------------------------------------

--- natPlainSocketImpl.cc	Mon Apr 15 05:21:58 2002
+++ natPlainSocketImpl.cc	Tue Apr 30 20:22:25 2002
@@ -46,6 +46,10 @@
 #define ENOPROTOOPT 109
 #endif
 #else /* WIN32 */
+#ifdef HAVE_SYS_IOCTL_H
+#define BSD_COMP
+#include <sys/ioctl.h>
+#endif
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>

-------------------------------------------------

--- natSystem.cc	Sun Apr  7 13:30:08 2002
+++ natSystem.cc	Tue Apr 30 20:07:30 2002
@@ -252,7 +252,11 @@
   tzoffset = -(tim->tm_gmtoff) + tim->tm_isdst *
3600L;
 #elif HAVE_TIMEZONE
   // timezone is secs WEST of UTC.
+  #ifdef __CYGWIN__
+  tzoffset = _timezone;	
+  #elif
   tzoffset = timezone;	
+  #endif	
 #else
   // FIXME: there must be another global if neither
tm_gmtoff nor timezone
   // is available, esp. if tzname is valid.



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the Java-patches mailing list