Ticket #2063: mapped_file.patch

File mapped_file.patch, 500 bytes (added by Erik Zeek <zeekec@…>, 14 years ago)

Possible patch.

  • libs/iostreams/src/mapped_file.cpp

     
    262262    if (p.new_file_size != 0 && !readonly)
    263263        flags |= (O_CREAT | O_TRUNC);
    264264    #ifdef _LARGEFILE64_SOURCE
    265         oflag |= O_LARGEFILE;
     265        flags |= O_LARGEFILE;
    266266    #endif
    267267    errno = 0;
    268268    handle_ = ::open(p.path.c_str(), flags, S_IRWXU);