scons: Address clang 3.2 compilation error
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 14 Jan 2013 15:23:56 +0000 (10:23 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 14 Jan 2013 15:23:56 +0000 (10:23 -0500)
This patch fixes a compilation error encountered using clang 3.2 on OSX.

src/proto/protoio.cc

index ae1e2d8c23d6de52cf0c446bc127e005e179f73e..76364794f28d452715e765aad33a2c77d20d2304 100644 (file)
@@ -91,7 +91,7 @@ ProtoOutputStream::write(const Message& msg)
 }
 
 ProtoInputStream::ProtoInputStream(const string& filename) :
-    fileStream(filename, ios::in | ios::binary), fileName(filename),
+    fileStream(filename.c_str(), ios::in | ios::binary), fileName(filename),
     useGzip(false),
     zeroCopyStream(NULL), gzipStream(NULL), codedStream(NULL)
 {