summaryrefslogtreecommitdiffstats
path: root/mcop_mt
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 01:01:25 +0900
commit8999284fae7bc1421d090d6860e0417a59b4451e (patch)
treeba3b31e4e39e79e0dbff747806578ce3fb95aaf7 /mcop_mt
parent8f88b82b295bbce3fdb014d1c1dd904e64e99541 (diff)
downloadarts-8999284fae7bc1421d090d6860e0417a59b4451e.tar.gz
arts-8999284fae7bc1421d090d6860e0417a59b4451e.zip
Fixed FTBFS with g++7 caused by #include directive placed inside namespace.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 1a41c9e42acb4771a5070bcaccb0db795fabc885)
Diffstat (limited to 'mcop_mt')
-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)