From f4602b7c22c100780fe76a757ff4b35188fb45ed Mon Sep 17 00:00:00 2001 From: mortimer Date: Thu, 28 Jan 2021 01:20:37 +0000 Subject: [PATCH] Extern privsep_process. Fixes compilation with -fno-common. ok deraadt@ --- sbin/iked/iked.h | 4 ++-- sbin/iked/proc.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h index e765da92b62..4945fdcd70d 100644 --- a/sbin/iked/iked.h +++ b/sbin/iked/iked.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.h,v 1.181 2021/01/26 23:06:23 tobhe Exp $ */ +/* $OpenBSD: iked.h,v 1.182 2021/01/28 01:20:37 mortimer Exp $ */ /* * Copyright (c) 2019 Tobias Heider @@ -99,7 +99,7 @@ struct ctl_conn { TAILQ_HEAD(ctl_connlist, ctl_conn); extern struct ctl_connlist ctl_conns; -enum privsep_procid privsep_process; +extern enum privsep_procid privsep_process; /* * Runtime structures diff --git a/sbin/iked/proc.c b/sbin/iked/proc.c index 68a36522776..ad89aa82e13 100644 --- a/sbin/iked/proc.c +++ b/sbin/iked/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.33 2020/11/11 18:24:55 tobhe Exp $ */ +/* $OpenBSD: proc.c,v 1.34 2021/01/28 01:20:37 mortimer Exp $ */ /* * Copyright (c) 2010 - 2014 Reyk Floeter @@ -34,6 +34,8 @@ #include "iked.h" +enum privsep_procid privsep_process; + void proc_open(struct privsep *, struct privsep_proc *, struct privsep_proc *, size_t); void proc_close(struct privsep *); -- 2.20.1