projects/aports·blob master · refs

101 lines · 2.5 KiB

1--- a/src/ioctl.c
2+++ b/src/ioctl.c
3@@ -220,7 +220,7 @@
4 *pi_copyright = p_buffer[ 4 ];
5
6 #else
7-# error "DVD ioctls are unavailable on this system"
8+ printf("DVD ioctls are unavailable on this system\n");
9
10 #endif
11 return i_ret;
12@@ -353,7 +353,7 @@
13 memcpy( p_key, p_buffer + 4, DVD_DISCKEY_SIZE );
14
15 #else
16-# error "DVD ioctls are unavailable on this system"
17+ printf("DVD ioctls are unavailable on this system\n");
18
19 #endif
20 return i_ret;
21@@ -483,7 +483,7 @@
22 memcpy( p_key, p_buffer + 5, DVD_KEY_SIZE );
23
24 #else
25-# error "DVD ioctls are unavailable on this system"
26+ printf("DVD ioctls are unavailable on this system\n");
27
28 #endif
29
30@@ -580,7 +580,7 @@
31 *pi_agid = p_buffer[ 7 ] >> 6;
32
33 #else
34-# error "DVD ioctls are unavailable on this system"
35+ printf("DVD ioctls are unavailable on this system\n");
36
37 #endif
38 return i_ret;
39@@ -688,7 +688,7 @@
40 memcpy( p_challenge, p_buffer + 4, DVD_CHALLENGE_SIZE );
41
42 #else
43-# error "DVD ioctls are unavailable on this system"
44+ printf("DVD ioctls are unavailable on this system\n");
45
46 #endif
47 return i_ret;
48@@ -798,7 +798,7 @@
49 *pi_asf = p_buffer[ 7 ] & 1;
50
51 #else
52-# error "DVD ioctls are unavailable on this system"
53+ printf("DVD ioctls are unavailable on this system\n");
54
55 #endif
56 return i_ret;
57@@ -901,7 +901,7 @@
58 memcpy( p_key, p_buffer + 4, DVD_KEY_SIZE );
59
60 #else
61-# error "DVD ioctls are unavailable on this system"
62+ printf("DVD ioctls are unavailable on this system\n");
63
64 #endif
65 return i_ret;
66@@ -984,7 +984,7 @@
67 &sdc, sizeof(sdc), &ulParamLen,
68 NULL, 0, &ulDataLen);
69 #else
70-# error "DVD ioctls are unavailable on this system"
71+ printf("DVD ioctls are unavailable on this system\n");
72
73 #endif
74 return i_ret;
75@@ -1093,7 +1093,7 @@
76 p_buffer, sizeof(p_buffer), &ulDataLen );
77
78 #else
79-# error "DVD ioctls are unavailable on this system"
80+ printf("DVD ioctls are unavailable on this system\n");
81
82 #endif
83 return i_ret;
84@@ -1202,7 +1202,7 @@
85 p_buffer, sizeof(p_buffer), &ulDataLen );
86
87 #else
88-# error "DVD ioctls are unavailable on this system"
89+ printf("DVD ioctls are unavailable on this system\n");
90
91 #endif
92 return i_ret;
93@@ -1329,7 +1329,7 @@
94 *p_scheme = p_buffer[ 6 ];
95
96 #else
97-# error "DVD ioctls are unavailable on this system"
98+ printf("DVD ioctls are unavailable on this system\n");
99
100 #endif
101 return i_ret;