gcc-4.7 fix

This commit is contained in:
Tatsuhiro Tsujikawa 2012-06-08 21:40:03 +09:00
parent 5ea6ea476e
commit 1199db690e
4 changed files with 5 additions and 2 deletions

View File

@ -53,7 +53,7 @@ const std::string STATUS_304 = "304 Not Modified";
const std::string STATUS_400 = "400 Bad Request"; const std::string STATUS_400 = "400 Bad Request";
const std::string STATUS_404 = "404 Not Found"; const std::string STATUS_404 = "404 Not Found";
const std::string DEFAULT_HTML = "index.html"; 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 } // namespace
Config::Config(): verbose(false), daemon(false), port(0), data_ptr(0), Config::Config(): verbose(false), daemon(false), port(0), data_ptr(0),

View File

@ -24,6 +24,7 @@
*/ */
#include "shrpx_listen_handler.h" #include "shrpx_listen_handler.h"
#include <unistd.h>
#include <pthread.h> #include <pthread.h>
#include <cerrno> #include <cerrno>

View File

@ -24,6 +24,8 @@
*/ */
#include "shrpx_thread_event_receiver.h" #include "shrpx_thread_event_receiver.h"
#include <unistd.h>
#include "shrpx_ssl.h" #include "shrpx_ssl.h"
#include "shrpx_log.h" #include "shrpx_log.h"
#include "shrpx_client_handler.h" #include "shrpx_client_handler.h"

View File

@ -132,7 +132,7 @@ int Spdylay::submit_request(const std::string& hostport,
":scheme", "https", ":scheme", "https",
":host", hostport.c_str(), ":host", hostport.c_str(),
"accept", "*/*", "accept", "*/*",
"user-agent", "spdylay/"SPDYLAY_VERSION, "user-agent", "spdylay/" SPDYLAY_VERSION,
NULL NULL
}; };
return spdylay_submit_request(session_, pri, nv, NULL, stream_user_data); return spdylay_submit_request(session_, pri, nv, NULL, stream_user_data);