File fix-build.patch of Package ffado.2721
Index: libffado-2.1.0/tests/test-enhanced-mixer.cpp
===================================================================
--- libffado-2.1.0.orig/tests/test-enhanced-mixer.cpp
+++ libffado-2.1.0/tests/test-enhanced-mixer.cpp
@@ -27,6 +27,7 @@
#include "libieee1394/ieee1394service.h"
#include <cstdlib>
#include <cstring>
+#include <errno.h>
using namespace AVC;
@@ -77,7 +78,6 @@ main(int argc, char **argv)
exit(0);
}
- int errno = 0;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );
Index: libffado-2.1.0/tests/test-mixer.cpp
===================================================================
--- libffado-2.1.0.orig/tests/test-mixer.cpp
+++ libffado-2.1.0/tests/test-mixer.cpp
@@ -27,6 +27,7 @@
#include "debugmodule/debugmodule.h"
#include "libieee1394/ieee1394service.h"
+#include <errno.h>
#include <string.h>
DECLARE_GLOBAL_DEBUG_MODULE;
@@ -227,7 +228,6 @@ main( int argc, char **argv )
exit(0);
}
- int errno = 0;
char* tail;
int port = strtol( argv[1], &tail, 0 );
int node_id = strtol( argv[2], &tail, 0 );
Index: libffado-2.1.0/tests/test-pan.cpp
===================================================================
--- libffado-2.1.0.orig/tests/test-pan.cpp
+++ libffado-2.1.0/tests/test-pan.cpp
@@ -26,6 +26,7 @@
#include "libutil/cmd_serialize.h"
#include "libieee1394/ieee1394service.h"
+#include <errno.h>
const bool bVerbose = false;
@@ -131,7 +132,6 @@ main(int argc, char **argv)
exit(0);
}
- int errno = 0;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );
Index: libffado-2.1.0/tests/test-volume.cpp
===================================================================
--- libffado-2.1.0.orig/tests/test-volume.cpp
+++ libffado-2.1.0/tests/test-volume.cpp
@@ -26,6 +26,7 @@
#include "libutil/cmd_serialize.h"
#include "libieee1394/ieee1394service.h"
+#include <errno.h>
const bool bVerbose = false;
@@ -127,7 +128,6 @@ main(int argc, char **argv)
exit(0);
}
- int errno = 0;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );