$NetBSD: patch-usr.sbin_smtpd_queue__fs.c,v 1.1 2023/08/24 15:26:40 vins Exp $ Fix build on DragonFly --- usr.sbin/smtpd/queue_fs.c.orig 2020-12-24 13:42:14.000000000 +0000 +++ usr.sbin/smtpd/queue_fs.c @@ -16,6 +16,17 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef __DragonFly__ +#include +/* + * XXX: the openbsd-compat/sys/queue.h intercepts and our + * needs "STAILQ_ENTRY(vfsconf) vfc_next;". + */ +#ifndef STAILQ_ENTRY +#define STAILQ_ENTRY(type) struct { struct type *stqe_next; /* next element */ } +#endif +#endif + #include "includes.h" #include