summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2023-02-22 22:36:12 +0100
committerDirk Engling <erdgeist@erdgeist.org>2023-02-22 22:36:12 +0100
commitcc24e1ab2d571402fe352a24898d5a103e28b844 (patch)
treeaea0f45c45a04bf48be876dec463034d1d4e45cf
parent6e591d7437fb174be4e288f04a3c5d75f1c5db4f (diff)
Add error if WANT_DYNAMIC_ACCESSLIST is enabled without any accesslistdynamic-accesslists
-rw-r--r--ot_accesslist.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h
index 9280fcb..281f61b 100644
--- a/ot_accesslist.h
+++ b/ot_accesslist.h
@@ -6,7 +6,7 @@
6#ifndef OT_ACCESSLIST_H__ 6#ifndef OT_ACCESSLIST_H__
7#define OT_ACCESSLIST_H__ 7#define OT_ACCESSLIST_H__
8 8
9#if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) 9#if defined ( WANT_ACCESSLIST_BLACK ) && defined ( WANT_ACCESSLIST_WHITE )
10# error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. 10# error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive.
11#endif 11#endif
12 12
@@ -24,6 +24,10 @@ extern char *g_accesslist_pipe_delete;
24#endif 24#endif
25 25
26#else 26#else
27#ifdef WANT_DYNAMIC_ACCESSLIST
28# error WANT_DYNAMIC_ACCESSLIST needs either WANT_ACCESSLIST_BLACK or WANT_ACCESSLIST_WHITE
29#endif
30
27#define accesslist_init( accesslist_filename ) 31#define accesslist_init( accesslist_filename )
28#define accesslist_deinit( ) 32#define accesslist_deinit( )
29#define accesslist_hashisvalid( hash ) 1 33#define accesslist_hashisvalid( hash ) 1