fix missing include files and inline definition
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Thu, 17 Dec 2015 15:28:17 +0000 (16:28 +0100)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Thu, 17 Dec 2015 15:28:17 +0000 (16:28 +0100)
src/pipestream.hxx

index 83244ed..9280859 100644 (file)
@@ -31,6 +31,8 @@ on this file might be covered by the GNU General Public License.
 
 #include <string>
 #include <streambuf>
+#include <istream>
+#include <ostream>
 
 struct ExecResult
 {
@@ -53,7 +55,7 @@ typedef struct ExecResult ExecResult;
 
 std::string capture_exec(const std::string& command, ExecResult &rescode);
 
-std::string capture_exec(const std::string& command)
+inline std::string capture_exec(const std::string& command)
 {
     ExecResult r;
     return capture_exec(command,r);