]> granicus.if.org Git - icinga2/commitdiff
Disable Application::SetResourceLimits on non-Linux systems
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 9 Jan 2015 10:43:57 +0000 (11:43 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 9 Jan 2015 10:44:20 +0000 (11:44 +0100)
fixes #8178

lib/base/application.cpp

index 7b511307ee007a005cd7a24a30d6f2944415f4cf..2c549a8bfbac450a5f0139006609921293955ec2 100644 (file)
@@ -176,7 +176,7 @@ Application::Ptr Application::GetInstance(void)
 
 void Application::SetResourceLimits(void)
 {
-#ifndef _WIN32
+#ifdef __linux__
        rlimit rl;
 
 #      ifdef RLIMIT_NOFILE
@@ -252,7 +252,7 @@ void Application::SetResourceLimits(void)
 #      else /* RLIMIT_STACK */
        Log(LogNotice, "Application", "System does not support adjusting the resource limit for stack size (RLIMIT_STACK)");
 #      endif /* RLIMIT_STACK */
-#endif /* _WIN32 */
+#endif /* __linux__ */
 }
 
 int Application::GetArgC(void)