Ignore:
Timestamp:
2010-06-12T23:33:27+12:00 (14 years ago)
Author:
davidb
Message:

Tie Makefile and source code in with -DMSDOS so MinGW/MSys compilation works with GDBM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/gdbmreorg.c

    r18074 r22259  
    113113  /* Get the mode for the old file and open the new database. */
    114114  fstat (dbf->desc, &fileinfo);
     115#ifdef MSDOS
     116  /* Not clear if final argument for Windows should be to obtain a
     117     file lock or not.  Play it safe for now and ask for a lock
     118  */
     119  new_dbf = gdbm_open (new_name, dbf->header->block_size, GDBM_WRCREAT,
     120               fileinfo.st_mode, dbf->fatal_err,dbf->need_filelock);
     121#else
    115122  new_dbf = gdbm_open (new_name, dbf->header->block_size, GDBM_WRCREAT,
    116123               fileinfo.st_mode, dbf->fatal_err);
     124#endif
    117125
    118126  if (new_dbf == NULL)
Note: See TracChangeset for help on using the changeset viewer.