src/common.c: Include <netinet/in.h> before <arpa/inet.h>.
[collectd.git] / configure.in
index 70e3edd..8db24ca 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