$OpenBSD$
--- configure.in.orig	Sat Dec 18 15:38:32 2004
+++ configure.in	Sat Dec 18 15:39:03 2004
@@ -1374,12 +1374,13 @@ dnl fwict, the 2-arg is an SVR4 standard
 dnl in the various BSD's
 dnl
 
+dnl sys/param.h needed for sys/swap.h on openbsd
+AC_CHECK_HEADERS([sys/stat.h sys/param.h])
 AC_CHECK_HEADERS([sys/swap.h], [], [], [
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
 ])
-AC_CHECK_HEADERS([sys/stat.h sys/param.h])
 AC_CHECK_DECLS([swapctl],,,[
                #include <unistd.h>
                #include <sys/types.h>
