pike.git / src / modules / _Stdio / sendfile.c

version» Context lines:

pike.git/src/modules/_Stdio/sendfile.c:107:   #define MMAP_SIZE 0x00100000 /* 1M */      #ifndef MAP_FAILED   #define MAP_FAILED ((void *)-1)   #endif /* !MAP_FAILED */      #ifndef MAP_FILE   #define MAP_FILE 0   #endif /* !MAP_FILE */    + #ifndef !defined(SOL_TCP) && defined(IPPROTO_TCP) +  /* SOL_TCP isn't defined in Solaris. */ + #define SOL_TCP IPPROTO_TCP + #endif +    /*    * Only support for threaded operation right now.    */   #ifdef _REENTRANT      #undef THIS   #define THIS ((struct pike_sendfile *)(Pike_fp->current_storage))      /*    * We assume sendfile(2) has been fixed on all OS's by now.