Menu

#929 Need to remove cygwin hack

open
nobody
parser (295)
5
2005-05-16
2005-05-16
No

folks,

need to remove the cygwin hack or at lease add a #ifdef
for it. causes problems with newer versions of cygwin.

thanks,
dims

Index: src/platform.cpp

RCS file: /cvsroot/jikes/jikes/src/platform.cpp,v
retrieving revision 1.47
diff -u -r1.47 platform.cpp
--- src/platform.cpp 23 Mar 2004 14:03:56 -0000
1.47
+++ src/platform.cpp 16 May 2005 14:28:13 -0000
@@ -201,15 +201,6 @@
int SystemStat(const char* name, struct stat* stat_struct)
{
int result = ::stat(name, stat_struct);
-#ifdef HAVE_SYS_CYGWIN_H
- //
- // Up through cygwin 1.3.10, the hash function
which determines inodes
- // was not strong enough, so java/net and java/nio
occasionally get the
- // same inode without this hack.
- //
- if (result == 0)
- stat_struct -> st_ino += name[strlen(name) - 1];
-#endif // HAVE_SYS_CYGWIN_H
return result;
}

Thanks,
dims

Discussion

  • Davanum Srinivas

    Logged In: YES
    user_id=215478

    Did anyone take a look at this?

    thanks,
    dims

     
  • Moritz Ringler

    Moritz Ringler - 2005-12-07

    Logged In: YES
    user_id=730046

    Cool, thanks a lot, dims. I've been trying to build jikes
    from cvs under cygwin for a while. Without success. With
    your patches it finally worked!

     
  • Nobody/Anonymous

    Logged In: NO

    It's been 6+ months, can someone please help with this patch?

    thanks,
    dims

     

Log in to post a comment.

MongoDB Logo MongoDB