diff options
Diffstat (limited to 'lib/cpp/src/thrift/server/TServer.cpp')
-rwxr-xr-x | lib/cpp/src/thrift/server/TServer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cpp/src/thrift/server/TServer.cpp b/lib/cpp/src/thrift/server/TServer.cpp index f4ce7441b..5e82ce687 100755 --- a/lib/cpp/src/thrift/server/TServer.cpp +++ b/lib/cpp/src/thrift/server/TServer.cpp @@ -32,6 +32,7 @@ namespace apache { namespace thrift { namespace server { +#ifdef HAVE_SYS_RESOURCE_H int increase_max_fds(int max_fds=(1<<24)) { struct rlimit fdmaxrl; @@ -43,5 +44,6 @@ int increase_max_fds(int max_fds=(1<<24)) { return static_cast<int>(fdmaxrl.rlim_cur); } +#endif }}} // apache::thrift::server |