Added detection if sendfile is in system

This commit is contained in:
Pauli Nieminen 2008-06-05 20:14:48 +00:00
parent 1dddfba779
commit 999b5451ba

View file

@ -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"