From 1199db690e5604dbdd2ebe114e09df2b2a2740f0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 8 Jun 2012 21:40:03 +0900 Subject: [PATCH] gcc-4.7 fix --- examples/SpdyServer.cc | 2 +- examples/shrpx_listen_handler.cc | 1 + examples/shrpx_thread_event_receiver.cc | 2 ++ examples/spdylay_ssl.cc | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 0142a01..e1590cf 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -53,7 +53,7 @@ const std::string STATUS_304 = "304 Not Modified"; const std::string STATUS_400 = "400 Bad Request"; const std::string STATUS_404 = "404 Not Found"; const std::string DEFAULT_HTML = "index.html"; -const std::string SPDYD_SERVER = "spdyd spdylay/"SPDYLAY_VERSION; +const std::string SPDYD_SERVER = "spdyd spdylay/" SPDYLAY_VERSION; } // namespace Config::Config(): verbose(false), daemon(false), port(0), data_ptr(0), diff --git a/examples/shrpx_listen_handler.cc b/examples/shrpx_listen_handler.cc index a49036c..2503fc4 100644 --- a/examples/shrpx_listen_handler.cc +++ b/examples/shrpx_listen_handler.cc @@ -24,6 +24,7 @@ */ #include "shrpx_listen_handler.h" +#include #include #include diff --git a/examples/shrpx_thread_event_receiver.cc b/examples/shrpx_thread_event_receiver.cc index 009589d..16a74ce 100644 --- a/examples/shrpx_thread_event_receiver.cc +++ b/examples/shrpx_thread_event_receiver.cc @@ -24,6 +24,8 @@ */ #include "shrpx_thread_event_receiver.h" +#include + #include "shrpx_ssl.h" #include "shrpx_log.h" #include "shrpx_client_handler.h" diff --git a/examples/spdylay_ssl.cc b/examples/spdylay_ssl.cc index f0eea35..6faacf9 100644 --- a/examples/spdylay_ssl.cc +++ b/examples/spdylay_ssl.cc @@ -132,7 +132,7 @@ int Spdylay::submit_request(const std::string& hostport, ":scheme", "https", ":host", hostport.c_str(), "accept", "*/*", - "user-agent", "spdylay/"SPDYLAY_VERSION, + "user-agent", "spdylay/" SPDYLAY_VERSION, NULL }; return spdylay_submit_request(session_, pri, nv, NULL, stream_user_data);