diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 23:22:12 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 23:22:24 +0200 |
commit | 5871d08a3a519dbc54261c8a18e649ec9cc8bd7f (patch) | |
tree | 8c6ce34d5b0b9edec0abdacedbeec49efb969cd7 /src/config.y | |
parent | 36690c7203f0e46665f328fbe82ae3bd573cc6ff (diff) | |
download | fastd-5871d08a3a519dbc54261c8a18e649ec9cc8bd7f.tar fastd-5871d08a3a519dbc54261c8a18e649ec9cc8bd7f.zip |
Make on-verify support optional
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 5 |
1 files changed, 5 insertions, 0 deletions
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 } ; |