Commit bbacdf2d authored by Felipe Sateler's avatar Felipe Sateler

Fix FTBFS with gcc 7

Thanks to Adrian Bunk for the patches.

Closes: #853671
parent 3983aa8a
From: Brian Heim <brianlheim@gmail.com>
Date: Tue, 4 Jul 2017 13:26:00 -0400
Subject: DiskIO_UGens: include <functional>
std::bind is in <functional> according to the C++ ISO standard, and
gcc7.1 enforces this.
---
server/plugins/DiskIO_UGens.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/plugins/DiskIO_UGens.cpp b/server/plugins/DiskIO_UGens.cpp
index b695b70..a6a8764 100644
--- a/server/plugins/DiskIO_UGens.cpp
+++ b/server/plugins/DiskIO_UGens.cpp
@@ -28,6 +28,7 @@
#include <atomic>
#include <new>
+#include <functional>
#include <SC_Lock.h>
#include <boost/lockfree/queue.hpp>
From: Adrian Bunk <bunk@debian.org>
Date: Thu, 7 Sep 2017 19:38:46 -0300
Subject: PyrSched.cpp: #include <functional> to fix FTBFS
Bug-Debian: https://bugs.debian.org/853671
---
lang/LangPrimSource/PyrSched.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/lang/LangPrimSource/PyrSched.cpp b/lang/LangPrimSource/PyrSched.cpp
index 5ae8766..426941a 100644
--- a/lang/LangPrimSource/PyrSched.cpp
+++ b/lang/LangPrimSource/PyrSched.cpp
@@ -37,6 +37,7 @@
#include <string.h>
#include <math.h>
#include <limits>
+#include <functional>
#if defined(__APPLE__) || defined(__linux__)
# include <pthread.h>
From: hlolli <hlolli@gmail.com>
Date: Mon, 10 Jul 2017 18:32:22 +0200
Subject: adding functional header in PyrSerialPrim.cpp
---
lang/LangPrimSource/PyrSerialPrim.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/lang/LangPrimSource/PyrSerialPrim.cpp b/lang/LangPrimSource/PyrSerialPrim.cpp
index 7935255..45933af 100644
--- a/lang/LangPrimSource/PyrSerialPrim.cpp
+++ b/lang/LangPrimSource/PyrSerialPrim.cpp
@@ -36,6 +36,7 @@
#include <termios.h>
#include <unistd.h>
#include <boost/atomic.hpp>
+#include <functional>
#include <stdexcept>
#include <sstream>
......@@ -5,3 +5,6 @@ cmake-fix-systemboost.patch
tlsf-fPIC-flag.patch
fix-oscpack-ftbfs.patch
Disable-128bit-float-constants.patch
adding-functional-header-in-PyrSerialPrim.cpp.patch
DiskIO_UGens-include-functional.patch
PyrSched.cpp-include-functional-to-fix-FTBFS.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment