diff options
Diffstat (limited to 'phosphor-rsyslog-config/server-conf.cpp')
-rw-r--r-- | phosphor-rsyslog-config/server-conf.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phosphor-rsyslog-config/server-conf.cpp b/phosphor-rsyslog-config/server-conf.cpp index 4bf167c..836e83b 100644 --- a/phosphor-rsyslog-config/server-conf.cpp +++ b/phosphor-rsyslog-config/server-conf.cpp @@ -13,6 +13,8 @@ #include <arpa/inet.h> #include <netdb.h> +#include <string> + namespace phosphor { namespace rsyslog_config @@ -131,7 +133,7 @@ void Server::restore(const char* filePath) std::fstream stream(filePath, std::fstream::in); std::string line; - getline(stream, line); + std::getline(stream, line); // Ignore if line is commented if ('#' != line.at(0)) |