From 57062706ec359532b022bde9f4cfc3138e80f7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 22 Feb 2017 12:06:28 +0100 Subject: [PATCH] Fix build of linphone-daemon --- CMakeLists.txt | 3 +++ daemon/commands/register-info.cc | 2 ++ daemon/commands/register-info.h | 1 + 3 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97c041a92..bf9a4fc78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,9 @@ option(ENABLE_VCARD "Turn on compilation of vcard4 support." YES) option(CXX_WRAPPER "Build the C++ wrapper for Liblinphone." OFF) +set(CMAKE_CXX_STANDARD 11) + + macro(apply_compile_flags SOURCE_FILES) if(${SOURCE_FILES}) set(options "") diff --git a/daemon/commands/register-info.cc b/daemon/commands/register-info.cc index f9750e587..67e6ad12f 100644 --- a/daemon/commands/register-info.cc +++ b/daemon/commands/register-info.cc @@ -17,6 +17,8 @@ along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include +#include #include "register-info.h" class RegisterInfoResponse: public Response { diff --git a/daemon/commands/register-info.h b/daemon/commands/register-info.h index 25228b836..e6b437a57 100644 --- a/daemon/commands/register-info.h +++ b/daemon/commands/register-info.h @@ -20,6 +20,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #ifndef LINPHONE_DAEMON_COMMAND_REGISTER_INFO_H_ #define LINPHONE_DAEMON_COMMAND_REGISTER_INFO_H_ +#include #include "daemon.h" class RegisterInfoCommand: public DaemonCommand {