From 4e8bb276b86c6e79ec4683a6bf241046ae7e9e84 Mon Sep 17 00:00:00 2001 From: Chaim Sanders Date: Thu, 3 Sep 2015 14:55:42 -0400 Subject: [PATCH] Fixing compilation problem on newer versions of gcc (Fedora 22+) --- README.md | 2 +- src/debug_log_writer_agent.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1c601c18..38390706 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ As a dynamic library, don’t forget that libmodsecurity must be installed to a Several individuals have been building the project on Fedora (22 or later) succesfully. We were able to get it to build using the following packages. These packages have no been thoroughly tested yet so compile at your own risk. You may have to manually link the generated ModSecurity library file location if it is not put into a location that is in your path (export LD_LIBRARY_PATH=/usr/local/modsecurity/lib/). -```$ sudo dnf install gcc-c++ flex bison curl-devel curl yajl yajl-devel GeoIP-devel +```$ sudo dnf install gcc-c++ flex bison curl-devel curl yajl yajl-devel GeoIP-devel doxygen $ cd /opt/ $ git clone https://github.com/SpiderLabs/ModSecurity $ cd ModSecurity diff --git a/src/debug_log_writer_agent.cc b/src/debug_log_writer_agent.cc index 1eb68d6f..5e11e4e1 100644 --- a/src/debug_log_writer_agent.cc +++ b/src/debug_log_writer_agent.cc @@ -39,8 +39,8 @@ void DebugLogWriterAgent::write(const std::string& msg) { } *this << msg << std::endl; - *this << flush(); + *this << std::flush; } -} // namespace ModSecurity \ No newline at end of file +} // namespace ModSecurity