HAVE_SYS_RESOURCE_H is not defined
Client: cpp
Patch: Ben Craig
 
 namespace apache { namespace thrift { namespace server {
 
+#ifdef HAVE_SYS_RESOURCE_H
 int increase_max_fds(int max_fds=(1<<24))  {
   struct rlimit fdmaxrl;
 
 
   return static_cast<int>(fdmaxrl.rlim_cur);
 }
+#endif
 
 }}} // apache::thrift::server
 
  * 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