From: Landry Breuil Date: Mon, 27 Oct 2014 08:12:26 +0000 (+0100) Subject: Fix swapctl() argument count detection on OpenBSD. X-Git-Tag: collectd-5.5.0~168^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=744ebfc61545f752ab95070b5287cbb70af78121;p=collectd.git Fix swapctl() argument count detection on OpenBSD. on OpenBSD swapctl() takes three arguments, but is defined in unistd.h and also needs sys/param.h. http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/swapctl.2 we need to add those headers to both detections to make sure the test on 'swapctl takes two arguments' correctly fails. --- diff --git a/configure.ac b/configure.ac index 9dd30c78..03eaf3c4 100644 --- a/configure.ac +++ b/configure.ac @@ -809,7 +809,9 @@ if test "x$have_swapctl" = "xyes"; then # undef _LARGEFILE64_SOURCE #endif #include +#include #include +#include ]]], [[[ int num = swapctl(0, NULL); @@ -829,7 +831,9 @@ int num = swapctl(0, NULL); # undef _LARGEFILE64_SOURCE #endif #include +#include #include +#include ]]], [[[ int num = swapctl(0, NULL, 0);