From 895492450cf3de8f325f14f3d3e43975f9a8e962 Mon Sep 17 00:00:00 2001
From: casparcedro <dev@eclecticdimensions.com>
Date: Sun, 6 Dec 2015 23:07:55 -0500
Subject: [PATCH] Updated tools/tools_common.h to remove std::to_string

Fixed for building with cygwin.
---
 tools/tools_common.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/tools_common.h b/tools/tools_common.h
index c1a73d85..23b930be 100644
--- a/tools/tools_common.h
+++ b/tools/tools_common.h
@@ -162,8 +162,11 @@ parseArgs(int argc, char **argv) {
         case 'b':
             if (optarg) {
                 params.bootstrap = splitPort((optarg[0] == '=') ? optarg+1 : optarg);
-                if (not params.bootstrap.first.empty() and params.bootstrap.second.empty())
-                    params.bootstrap.second = std::to_string(DHT_DEFAULT_PORT);
+                if (not params.bootstrap.first.empty() and params.bootstrap.second.empty()){
+                    std::stringstream ss;
+					ss << DHT_DEFAULT_PORT;
+					params.bootstrap.second = ss.str();
+                }
             }
             else
                 params.is_bootstrap_node = true;
-- 
GitLab