summaryrefslogtreecommitdiff
path: root/lib/cpp/src/thrift/server/TServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cpp/src/thrift/server/TServer.h')
-rw-r--r--lib/cpp/src/thrift/server/TServer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cpp/src/thrift/server/TServer.h b/lib/cpp/src/thrift/server/TServer.h
index c9e88b183..7f718da53 100644
--- a/lib/cpp/src/thrift/server/TServer.h
+++ b/lib/cpp/src/thrift/server/TServer.h
@@ -307,8 +307,9 @@ public:
* for the current process and all of its children.
* By default, tries to increase it to as much as 2^24.
*/
+#ifdef HAVE_SYS_RESOURCE_H
int increase_max_fds(int max_fds=(1<<24));
-
+#endif
}}} // apache::thrift::server