From 744ebfc61545f752ab95070b5287cbb70af78121 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 27 Oct 2014 09:12:26 +0100 Subject: [PATCH] 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. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.11.0