Code

configure.in: Using sysctl(3) for swap statistics is only possible under Mac OS X.
authorFlorian Forster <octo@noris.net>
Wed, 2 Feb 2011 13:25:32 +0000 (14:25 +0100)
committerFlorian Forster <octo@noris.net>
Wed, 2 Feb 2011 13:25:32 +0000 (14:25 +0100)
configure.in

index 70e3edda0f9ed289f3b4ed60a33c8ce9c7b2f624..8db24ca4e82e8b590068cc64d8b68afb76f9ff77 100644 (file)
@@ -4474,8 +4474,11 @@ if test "x$have_sysctl" = "xyes"
 then
        plugin_cpu="yes"
        plugin_memory="yes"
-       plugin_swap="yes"
        plugin_uptime="yes"
+       if test "x$ac_system" = "xDarwin"
+       then
+               plugin_swap="yes"
+       fi
 fi
 if test "x$have_sysctlbyname" = "xyes"
 then