(the portable code in here is not in great shape, and I am ignoring it)
-/* $OpenBSD: device.c,v 1.17 2017/01/21 08:33:51 krw Exp $ */
+/* $OpenBSD: device.c,v 1.18 2021/01/26 18:25:07 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
#include "mopdef.h"
#include "pf.h"
-struct if_info *iflist; /* Interface List */
+extern struct if_info *iflist; /* Interface List */
#ifdef DEV_NEW_CONF
/*
-/* $OpenBSD: loop-bsd.c,v 1.13 2009/10/27 23:59:52 deraadt Exp $ */
+/* $OpenBSD: loop-bsd.c,v 1.14 2021/01/26 18:25:07 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
* The list of all interfaces that are being listened to. loop()
* "selects" on the descriptors in this list.
*/
-struct if_info *iflist;
+extern struct if_info *iflist;
void mopProcess(struct if_info *, u_char *);