Ignore:
Timestamp:
Apr 7, 2009, 8:25:32 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #1976: build problem with r8173: "erreur: ‘POSIX_FADV_SEQUENTIAL’ undeclared"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r8171 r8175  
    2323#include "transmission.h"
    2424#include "completion.h"
     25#include "fdlimit.h"
    2526#include "resume.h" /* tr_torrentSaveResume() */
    2627#include "inout.h"
     
    7576        {
    7677            char * filename = tr_buildPath( tor->downloadDir, file->name, NULL );
    77             fp = fopen( filename, "rb" );
    78 #ifdef HAVE_POSIX_FADVISE
    79             if( fp != NULL )
    80                 posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
    81 #endif
     78            fp = tr_open_file_for_reading( filename, TRUE );
    8279            /* fprintf( stderr, "opening file #%d (%s) -- %p\n", fileIndex, filename, fp ); */
    8380            tr_free( filename );
Note: See TracChangeset for help on using the changeset viewer.