aboutsummaryrefslogtreecommitdiff
path: root/libraries/libffado/libffado-mixer.patch
blob: 30ab57ce1d787669df13d321be986c5f9f5f4073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- a/tests/test-enhanced-mixer.cpp
+++ b/tests/test-enhanced-mixer.cpp
@@ -77,7 +77,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );
--- a/tests/test-mixer.cpp
+++ b/tests/test-mixer.cpp
@@ -227,7 +227,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int port = strtol( argv[1], &tail, 0 );
     int node_id = strtol( argv[2], &tail, 0 );
--- a/tests/test-pan.cpp
+++ b/tests/test-pan.cpp
@@ -131,7 +131,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );
--- a/tests/test-volume.cpp
+++ b/tests/test-volume.cpp
@@ -127,7 +127,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );