diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-29 06:42:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-29 06:42:14 +0000 |
commit | eff5a06510dd0c17bca5d92dd7e21c0d11678d58 (patch) | |
tree | 6c5cee2725ed2807dbdc9596d310d3e0d74531ba /sbin | |
parent | 4b3eed2523fd7895e8d0eb497d3d00d0fbc294e6 (diff) |
the code in this file has reason to include any sys/*.h header files,
let alone sys/param.h, which it uses to get roundup(). make a local
copy of the macro, and call it a day.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/dh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/dh.c b/sbin/isakmpd/dh.c index f7b07c865d1..ca5f45b632b 100644 --- a/sbin/isakmpd/dh.c +++ b/sbin/isakmpd/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.22 2021/05/13 14:28:03 tb Exp $ */ +/* $OpenBSD: dh.c,v 1.23 2021/11/29 06:42:13 deraadt Exp $ */ /* * Copyright (c) 2010-2014 Reyk Floeter <reyk@openbsd.org> @@ -16,7 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <sys/param.h> /* roundup */ #include <string.h> #include <openssl/obj_mac.h> @@ -27,6 +26,8 @@ #include "dh.h" +#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) + int dh_init(struct group *); int modp_init(struct group *); |