summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c41ea6)
raw | patch | inline | side by side (parent: 4c41ea6)
author | Landry Breuil <landry@rhaalovely.net> | |
Mon, 27 Oct 2014 08:12:26 +0000 (09:12 +0100) | ||
committer | Landry Breuil <landry@rhaalovely.net> | |
Mon, 27 Oct 2014 08:12:26 +0000 (09:12 +0100) |
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.
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 | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 9dd30c78993ca9c74c285b6a2f31bb45505436c7..03eaf3c4656ad7da4c58f11af54ebc3ca329e29f 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# undef _LARGEFILE64_SOURCE
#endif
#include <sys/stat.h>
+#include <sys/param.h>
#include <sys/swap.h>
+#include <unistd.h>
]]],
[[[
int num = swapctl(0, NULL);
# undef _LARGEFILE64_SOURCE
#endif
#include <sys/stat.h>
+#include <sys/param.h>
#include <sys/swap.h>
+#include <unistd.h>
]]],
[[[
int num = swapctl(0, NULL, 0);