diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-04-10 22:38:56 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-04-10 22:38:56 +0200 |
commit | 766f9f420aae19ecf282a32e7f9e2add275d9b14 (patch) | |
tree | 8c825ca608a9671e2647f5d3ecb6e41d67079412 /src/ConfigParser.cpp | |
parent | 975c4b40a2e5fbe8f5566f21c49db96a5a939127 (diff) | |
download | dabmod-766f9f420aae19ecf282a32e7f9e2add275d9b14.tar.gz dabmod-766f9f420aae19ecf282a32e7f9e2add275d9b14.tar.bz2 dabmod-766f9f420aae19ecf282a32e7f9e2add275d9b14.zip |
Make telnet RC compile-time dependant on boost
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r-- | src/ConfigParser.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 94a960d..350c278 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -72,13 +72,14 @@ static void parse_configfile( int line_err = pt.ParseError(); - if (line_err) - { + if (line_err) { std::cerr << "Error, cannot read configuration file '" << configuration_file.c_str() << "'" << std::endl; std::cerr << "At line: " << line_err << std::endl; throw std::runtime_error("Cannot read configuration file"); } - // remote controller: + + // remote controller interfaces: +#if defined(HAVE_BOOST) if (pt.GetInteger("remotecontrol.telnet", 0) == 1) { try { int telnetport = pt.GetInteger("remotecontrol.telnetport", 0); @@ -91,6 +92,7 @@ static void parse_configfile( throw std::runtime_error("Configuration error"); } } +#endif #if defined(HAVE_ZEROMQ) if (pt.GetInteger("remotecontrol.zmqctrl", 0) == 1) { try { |