Changeset 10765

Show
Ignore:
Timestamp:
25.10.2005 15:52:00 (14 years ago)
Author:
kjdon
Message:

made the previous change only for windows (if defined WIN32) as gdbm_open on linux doesn't have the final argument

Location:
trunk/gsdl3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/packages/javagdbm/jni/gdbmjava.c

    r10762 r10765  
    100100    /* XXX: Should we let the caller specify the file mode?  I think 
    101101     * not -- Java is above the level of octal file modes. [mbp] */ 
     102    /* Couldn't get it to work properly on Windows without the 0 here -  
     103       wouldn't allow mulitple READs on a single file [kjdon] */ 
     104#if defined (__WIN32__)  
    102105    dbf = gdbm_open((char *) utfFileName, 0, flags, 0660, NULL, 0); 
    103     
     106#else 
     107    dbf = gdbm_open((char *) utfFileName, 0, flags, 0660, NULL); 
     108#endif 
    104109    if (utfFileName) 
    105110    (*env)->ReleaseStringUTFChars(env, fileName, utfFileName); 
  • trunk/gsdl3/src/packages/javagdbm/jni/gdbmjava.c

    r10762 r10765  
    100100    /* XXX: Should we let the caller specify the file mode?  I think 
    101101     * not -- Java is above the level of octal file modes. [mbp] */ 
     102    /* Couldn't get it to work properly on Windows without the 0 here -  
     103       wouldn't allow mulitple READs on a single file [kjdon] */ 
     104#if defined (__WIN32__)  
    102105    dbf = gdbm_open((char *) utfFileName, 0, flags, 0660, NULL, 0); 
    103     
     106#else 
     107    dbf = gdbm_open((char *) utfFileName, 0, flags, 0660, NULL); 
     108#endif 
    104109    if (utfFileName) 
    105110    (*env)->ReleaseStringUTFChars(env, fileName, utfFileName);