Changeset 12189 in project


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

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

Location:
release/3/sendfile/trunk
Files:
2 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
  • release/3/sendfile/trunk/tests/test-utils.scm

    r11816 r12189  
    99
    1010(define test-file-out "outfile.data")
    11 (define big-test-file "sicp.pdf")
     11;(define big-test-file "sicp.pdf")
    1212(define test-file "testfile.jpg")
    1313(define test-file-size (file-size test-file))
    14 (define big-test-file-size (file-size big-test-file))
     14;(define big-test-file-size (file-size big-test-file))
    1515(define test-file-checksum (compute-file-checksum test-file))
    16 (define big-test-file-checksum (compute-file-checksum big-test-file))
     16;(define big-test-file-checksum (compute-file-checksum big-test-file))
    1717
    1818(define (with-prepared-environment file proc #!optional (ports? #f))
Note: See TracChangeset for help on using the changeset viewer.