Ignore:
Timestamp:
2005-10-25T15:52:00+13:00 (18 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.