From 65e36a81bf1a18f0348c42a6b35eb045d5f3b94f Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 24 Mar 2017 10:58:19 +0200 Subject: [PATCH] Compile spinlock.c as C++ --- server/core/CMakeLists.txt | 4 +++- server/core/{spinlock.c => spinlock.cc} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename server/core/{spinlock.c => spinlock.cc} (100%) diff --git a/server/core/CMakeLists.txt b/server/core/CMakeLists.txt index d86c7e3a2..299cac23c 100644 --- a/server/core/CMakeLists.txt +++ b/server/core/CMakeLists.txt @@ -29,7 +29,9 @@ add_library(maxscale-common SHARED secrets.cc server.cc service.cc - session.cc spinlock.c thread.c users.c utils.c skygw_utils.cc statistics.c listener.c ssl.c mysql_utils.c mysql_binlog.c modulecmd.c) + session.cc + spinlock.cc + thread.c users.c utils.c skygw_utils.cc statistics.c listener.c ssl.c mysql_utils.c mysql_binlog.c modulecmd.c) if(WITH_JEMALLOC) target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES}) diff --git a/server/core/spinlock.c b/server/core/spinlock.cc similarity index 100% rename from server/core/spinlock.c rename to server/core/spinlock.cc