From 58fdae92c09272f826f0307cc9f51f220a5fb8f8 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 8 Aug 2014 07:32:55 -0400 Subject: [PATCH] fixed gcc build for FreeBSD --- util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index 3fd60ca1..abbee790 100644 --- a/util.cpp +++ b/util.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -372,7 +373,7 @@ namespace http portstr_ = std::string(port_i + 1, host_.end()); host_.assign(host_.begin(), port_i); try{ - port_ = std::stoi(portstr_); + port_ = boost::lexical_cast(portstr_); } catch (std::exception e) { port_ = 80;