File ffado-gcc6.patch of Package ffado
---
src/libutil/TimestampedBuffer.cpp | 2 +-
tests/test-enhanced-mixer.cpp | 3 ++-
tests/test-mixer.cpp | 3 ++-
tests/test-pan.cpp | 3 ++-
tests/test-volume.cpp | 3 ++-
5 files changed, 9 insertions(+), 5 deletions(-)
Index: src/libutil/TimestampedBuffer.cpp
===================================================================
--- src/libutil/TimestampedBuffer.cpp.orig 2014-06-02 01:49:28.000000000 +0200
+++ src/libutil/TimestampedBuffer.cpp 2017-03-22 13:08:54.747754701 +0200
@@ -58,6 +58,7 @@
pthread_mutex_unlock(&m_framecounter_lock); \
}
+#include <math.h>
namespace Util {
@@ -179,7 +180,6 @@ bool TimestampedBuffer::setWrapValue(ffa
m_wrap_at=w;
return true;
}
-#include <math.h>
/**
* \brief return the effective rate
Index: tests/test-enhanced-mixer.cpp
===================================================================
--- tests/test-enhanced-mixer.cpp.orig 2016-04-29 09:21:42.000000000 +0200
+++ tests/test-enhanced-mixer.cpp 2017-03-22 13:08:54.747754701 +0200
@@ -25,6 +25,7 @@
#include "libutil/cmd_serialize.h"
#include "libieee1394/ieee1394service.h"
+#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <cerrno>
Index: tests/test-mixer.cpp
===================================================================
--- tests/test-mixer.cpp.orig 2017-03-22 13:08:48.027508639 +0200
+++ tests/test-mixer.cpp 2017-03-22 13:08:54.747754701 +0200
@@ -27,6 +27,7 @@
#include "debugmodule/debugmodule.h"
#include "libieee1394/ieee1394service.h"
+#include <cerrno>
#include <string.h>
DECLARE_GLOBAL_DEBUG_MODULE;
@@ -227,7 +228,7 @@ main( int argc, char **argv )
exit(0);
}
- int errno = 0;
+ errno = 0;
char* tail;
int port = strtol( argv[1], &tail, 0 );
int node_id = strtol( argv[2], &tail, 0 );
Index: tests/test-pan.cpp
===================================================================
--- tests/test-pan.cpp.orig 2017-03-22 13:08:48.027508639 +0200
+++ tests/test-pan.cpp 2017-03-22 13:08:54.747754701 +0200
@@ -26,6 +26,7 @@
#include "libutil/cmd_serialize.h"
#include "libieee1394/ieee1394service.h"
+#include <cerrno>
const bool bVerbose = false;
@@ -131,7 +132,7 @@ main(int argc, char **argv)
exit(0);
}
- int errno = 0;
+ errno = 0;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );
Index: tests/test-volume.cpp
===================================================================
--- tests/test-volume.cpp.orig 2016-04-29 09:21:42.000000000 +0200
+++ tests/test-volume.cpp 2017-03-22 13:08:54.747754701 +0200
@@ -28,6 +28,7 @@
#include "libutil/cmd_serialize.h"
#include "libieee1394/ieee1394service.h"
+#include <cerrno>
#include <cerrno>