Changeset 1446 for trunk/yat/utility


Ignore:
Timestamp:
Aug 28, 2008, 4:51:36 AM (13 years ago)
Author:
Peter
Message:

refs #426 make it compile on Tiger - but removed the Large File Support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/FileUtil.cc

    r1437 r1446  
    7171            break;
    7272          case 'd':
    73             struct stat64 nodestat;
    74             stat64(tryme.c_str(),&nodestat);
     73            struct stat nodestat;
     74            stat(tryme.c_str(),&nodestat);
    7575            if (!S_ISDIR(nodestat.st_mode))
    7676              ok = false;
     
    8787  bool FileUtil::exists(void) const
    8888  {
    89     struct stat64 statt;
    90     if ( stat64(path_.c_str(),&statt) && (errno!=ENOENT) ) {
     89    struct stat statt;
     90    if ( stat(path_.c_str(),&statt) && (errno!=ENOENT) ) {
    9191      std::stringstream ss;
    92       ss << "stat64(2) call failed with errno: " << errno;
     92      ss << "stat(2) call failed with errno: " << errno;
    9393      throw IO_error(ss.str());
    9494    }
Note: See TracChangeset for help on using the changeset viewer.