diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-10-09 22:48:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-10 12:20:02 +0200 |
commit | 71c35df2454b1d73f5d762bed56c725578f9f867 (patch) | |
tree | 4600563367d90d8044788aef3406d995ab34e1b2 /include | |
parent | d4b52a05834f67dec416cb49e5fec265e39b0bea (diff) |
build: allow disabling libreadline-support
This makes nftables a bit more embedded-friendly.
Signed-off-by: Steven Barth <cyrus@openwrt.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/nftables.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h index 3394e324..c3d3dbfb 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -31,7 +31,14 @@ extern unsigned int debug_level; extern const char *include_paths[INCLUDE_PATHS_MAX]; struct parser_state; +#ifdef HAVE_LIBREADLINE extern int cli_init(struct parser_state *state); +#else +static inline int cli_init(struct parser_state *state) +{ + return -1; +} +#endif extern void cli_exit(void); extern void cli_display(const char *fmt, va_list ap) __fmtstring(1, 0); |