summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-04-23 00:59:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-04-23 00:59:57 +0900
commit1a41c9e42acb4771a5070bcaccb0db795fabc885 (patch)
treea7eddd7ecef2f703baaf48c7030fc582a79f6cb2
parent4bcfb33a3a4dccd3ee53c1d799570e0daa945342 (diff)
downloadarts-1a41c9e42acb4771a5070bcaccb0db795fabc885.tar.gz
arts-1a41c9e42acb4771a5070bcaccb0db795fabc885.zip
Fixed FTBFS with g++7 caused by #include directive placed inside namespace.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--mcop_mt/threads_posix.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/mcop_mt/threads_posix.cc b/mcop_mt/threads_posix.cc
index 0ec24a5..6fa953c 100644
--- a/mcop_mt/threads_posix.cc
+++ b/mcop_mt/threads_posix.cc
@@ -28,6 +28,7 @@
#ifdef HAVE_LIBPTHREAD
#include <gsl/gslconfig.h>
+#include <gsl/gslcommon.h>
#include <sys/types.h>
#include <stddef.h>
@@ -36,7 +37,6 @@
#include <semaphore.h>
#include <debug.h>
#include <string.h>
-
#include "thread.h"
/*
@@ -332,7 +332,6 @@ public:
}
} initOnStartup;
-#include <gsl/gslcommon.h>
/* -fast- locking for gsl on platforms with unix98 support */
#if (GSL_HAVE_MUTEXATTR_SETTYPE > 0)
static void pth_mutex_init (GslMutex *mutex)