1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-11 23:40:04 +00:00

Add error if WANT_DYNAMIC_ACCESSLIST is enabled without any accesslist

This commit is contained in:
Dirk Engling 2023-02-22 22:36:12 +01:00
parent 6e591d7437
commit cc24e1ab2d

View File

@ -6,7 +6,7 @@
#ifndef OT_ACCESSLIST_H__ #ifndef OT_ACCESSLIST_H__
#define OT_ACCESSLIST_H__ #define OT_ACCESSLIST_H__
#if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) #if defined ( WANT_ACCESSLIST_BLACK ) && defined ( WANT_ACCESSLIST_WHITE )
# error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. # error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive.
#endif #endif
@ -24,6 +24,10 @@ extern char *g_accesslist_pipe_delete;
#endif #endif
#else #else
#ifdef WANT_DYNAMIC_ACCESSLIST
# error WANT_DYNAMIC_ACCESSLIST needs either WANT_ACCESSLIST_BLACK or WANT_ACCESSLIST_WHITE
#endif
#define accesslist_init( accesslist_filename ) #define accesslist_init( accesslist_filename )
#define accesslist_deinit( ) #define accesslist_deinit( )
#define accesslist_hashisvalid( hash ) 1 #define accesslist_hashisvalid( hash ) 1