Ticket #464: sendfilke-mingw32.patch
File sendfilke-mingw32.patch, 738 bytes (added by , 13 years ago) |
---|
-
os-dep.h
76 76 #elif defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__) 77 77 78 78 #define MADV_SEQUENTIAL 0 79 #define MADV_WILLNEED 0 79 80 #define HAVE_SENDFILE 0 80 81 #define HAVE_MMAP 0 81 double sendfile_implementation(int src,int dst,double offset, int to_send);82 double sendfile_implementation(int src,int dst,double offset,size_t to_send); 82 83 83 84 #else 84 85 … … 90 91 #endif 91 92 92 93 93 #if defined(__CYGWIN__) || !defined(MADV_SEQUENTIAL) 94 #if defined(__CYGWIN__) || !defined(MADV_SEQUENTIAL) || defined(__MINGW32__) 94 95 static int madvise(char* a, unsigned int b, int c){ 95 96 return 0; 96 97 }