From a281b1408fc3b5009704ada135542579410d7670 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sat, 1 Apr 2017 14:37:20 +0200 Subject: [PATCH] don't enable c++11, as it is used yet. This breaks compilation on centos6. --- configure.ac | 1 - daemon/commands/register-info.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d1f999db8..0a61de025 100644 --- a/configure.ac +++ b/configure.ac @@ -86,7 +86,6 @@ case $target in esac -CXXFLAGS="${CXXFLAGS} -std=c++11" AM_CONDITIONAL(BUILD_IOS, test x$ios_found = xyes) diff --git a/daemon/commands/register-info.cc b/daemon/commands/register-info.cc index 67e6ad12f..681d894e3 100644 --- a/daemon/commands/register-info.cc +++ b/daemon/commands/register-info.cc @@ -92,7 +92,7 @@ void RegisterInfoCommand::exec(Daemon *app, const std::string& args) { } else { int id; try { - id = std::stoi(param); + id = atoi(param.c_str()); } catch (std::invalid_argument) { app->sendResponse(Response("Invalid ID.", Response::Error)); return;