aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdvdcss/replace-error.patch
blob: 194fef0054b27d36b1181fc789ea4efcc75f5829 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -220,7 +220,7 @@
     *pi_copyright = p_buffer[ 4 ];
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -353,7 +353,7 @@
     memcpy( p_key, p_buffer + 4, DVD_DISCKEY_SIZE );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -483,7 +483,7 @@
     memcpy( p_key, p_buffer + 5, DVD_KEY_SIZE );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
 
@@ -580,7 +580,7 @@
     *pi_agid = p_buffer[ 7 ] >> 6;
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -688,7 +688,7 @@
     memcpy( p_challenge, p_buffer + 4, DVD_CHALLENGE_SIZE );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -798,7 +798,7 @@
     *pi_asf = p_buffer[ 7 ] & 1;
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -901,7 +901,7 @@
     memcpy( p_key, p_buffer + 4, DVD_KEY_SIZE );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -984,7 +984,7 @@
                         &sdc, sizeof(sdc), &ulParamLen,
                         NULL, 0, &ulDataLen);
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -1093,7 +1093,7 @@
                          p_buffer, sizeof(p_buffer), &ulDataLen );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -1202,7 +1202,7 @@
                          p_buffer, sizeof(p_buffer), &ulDataLen );
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;
@@ -1329,7 +1329,7 @@
     *p_scheme = p_buffer[ 6 ];
 
 #else
-#   error "DVD ioctls are unavailable on this system"
+    printf("DVD ioctls are unavailable on this system\n");
 
 #endif
     return i_ret;