From 5871d08a3a519dbc54261c8a18e649ec9cc8bd7f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 26 Apr 2014 23:22:12 +0200 Subject: Make on-verify support optional --- src/config.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.y') diff --git a/src/config.y b/src/config.y index 5ef2d1b..8c53b07 100644 --- a/src/config.y +++ b/src/config.y @@ -413,7 +413,12 @@ on_disestablish: sync_def_async TOK_STRING { ; on_verify: sync_def_async TOK_STRING { +#ifdef WITH_VERIFY fastd_shell_command_set(&conf.on_verify, $2->str, $1); +#else + fastd_config_error(&@$, filename, depth, "`on verify' is not supported by this version of fastd"); + YYERROR; +#endif } ; -- cgit v1.2.3