Browse Source

Fixed FTBFS with g++7 caused by #include directive placed inside namespace.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 1 year ago
parent
commit
1a41c9e42a
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      mcop_mt/threads_posix.cc

+ 1
- 2
mcop_mt/threads_posix.cc View File

@@ -28,6 +28,7 @@
28 28
 #ifdef HAVE_LIBPTHREAD
29 29
 
30 30
 #include <gsl/gslconfig.h>
31
+#include <gsl/gslcommon.h>
31 32
 
32 33
 #include <sys/types.h>
33 34
 #include <stddef.h>
@@ -36,7 +37,6 @@
36 37
 #include <semaphore.h>
37 38
 #include <debug.h>
38 39
 #include <string.h>
39
-
40 40
 #include "thread.h"
41 41
 
42 42
 /*
@@ -332,7 +332,6 @@ public:
332 332
 	}
333 333
 } initOnStartup;
334 334
 
335
-#include <gsl/gslcommon.h>
336 335
 /* -fast- locking for gsl on platforms with unix98 support */
337 336
 #if (GSL_HAVE_MUTEXATTR_SETTYPE > 0)
338 337
 static void pth_mutex_init (GslMutex *mutex)

Loading…
Cancel
Save