Changeset 12189 in project for release/3/sendfile/trunk/os-dep.h


Ignore:
Timestamp:
10/18/08 12:59:53 (12 years ago)
Author:
certainty
Message:

added conditional to detect cygwin and disable madvise in this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/sendfile/trunk/os-dep.h

    r10723 r12189  
    1111#define HAVE_MADVISE 1
    1212#else
     13#define HAVE_MADVISE 0
     14#endif
     15
     16#ifdef __CYGWIN__
    1317#define HAVE_MADVISE 0
    1418#endif
     
    8690#elif defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__)
    8791
    88  #define MADV_SEQUENTIAL 0
    8992 #define HAVE_SENDFILE 0
    9093 #define HAVE_MMAP 0
     
    9396#else
    9497
    95  #define MADV_SEQUENTIAL 0
    9698 #define HAVE_SENDFILE 0
    9799 #define HAVE_MMAP 0
Note: See TracChangeset for help on using the changeset viewer.