Added detection if sendfile is in system
This commit is contained in:
parent
1dddfba779
commit
999b5451ba
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,14 @@
|
|||
#ifndef NETWORK_WORKER_HPP_INCLUDED
|
||||
#define NETWORK_WORKER_HPP_INCLUDED
|
||||
|
||||
// Check if sendfile function is implemented by glibc
|
||||
// It is linux only extension
|
||||
#ifdef __GNUC_PREREQ
|
||||
#if __GNUC_PREREQ(2,1)
|
||||
#define USE_SENDFILE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "config.hpp"
|
||||
|
|
Loading…
Add table
Reference in a new issue