Changeset 7800


Ignore:
Timestamp:
Jan 25, 2009, 11:47:07 PM (12 years ago)
Author:
charles
Message:

(trunk libT) try again to make hudson-t happy wrt posix_fadvise()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r7799 r7800  
    2727#endif
    2828
     29#ifdef HAVE_POSIX_FADVISE
     30 #ifdef _XOPEN_SOURCE
     31  #undef _XOPEN_SOURCE
     32 #endif
     33 #define _XOPEN_SOURCE 600
     34#endif
     35
    2936#include <assert.h>
    3037#include <errno.h>
     
    4855#endif
    4956#include <unistd.h>
    50 
    51 #ifdef HAVE_POSIX_FADVISE
    52  /* required for getting posix_fadvise() from fcntl.h */
    53  #define _XOPEN_SOURCE 600
    54 #endif
    55 #include <fcntl.h> /* O_LARGEFILE; posix_fadvise() */
    56 
    57 #include <event.h>
     57#include <fcntl.h> /* O_LARGEFILE posix_fadvise */
     58
    5859#include <evutil.h>
    5960
Note: See TracChangeset for help on using the changeset viewer.