summaryrefslogtreecommitdiff
path: root/common/common.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 14:57:09 +0100
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 14:57:09 +0100
commit3110ba77506bf66eef114d123fd8d091d443316a (patch)
tree3e2e55d54796084a0bb75d6df87696c00a4afca9 /common/common.h
parentae7f9696aefd6ce7b024af37c4d2c32f6783d106 (diff)
Vendor import nvi 2.2.2vendor/nvi/2.2.2vendor/nvi
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/common/common.h b/common/common.h
index fd97a4655cf5..a04b26ed8eb0 100644
--- a/common/common.h
+++ b/common/common.h
@@ -11,11 +11,7 @@
#define TCSASOFT 0
#endif
-#ifdef DB_H_ABS_PATH
-#include DB_H_ABS_PATH
-#else
#include <db.h>
-#endif
#include <regex.h> /* May refer to the bundled regex. */
#include <stdint.h>
@@ -92,4 +88,11 @@ typedef enum { SEQ_ABBREV, SEQ_COMMAND, SEQ_INPUT } seq_t;
#include "log.h"
#include "mem.h"
-#include "extern.h"
+#include "common_extern.h"
+
+#ifndef SLIST_REMOVE_AFTER
+#define SLIST_REMOVE_AFTER(elm, field) do { \
+ SLIST_NEXT(elm, field) = \
+ SLIST_NEXT(SLIST_NEXT(elm, field), field); \
+} while (0)
+#endif