aboutsummaryrefslogtreecommitdiff
path: root/system/udftools/fix-compiler-errors.patch
blob: e6db4e808dd4937cd7b73a6beb9c54446b12d5f9 (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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
--- udftools-1.0.0b3.orig/cdrwtool/cdrwtool.c	2002-12-28 15:48:51.000000000 +1100
+++ udftools-1.0.0b3/cdrwtool/cdrwtool.c	2013-03-09 16:28:32.685490490 +1100
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <getopt.h>
 #include <signal.h>
+#include <limits.h>
 
 #include <sys/ioctl.h>
 #include <asm/param.h>
--- udftools-1.0.0b3.orig/cdrwtool/main.c	2004-02-23 14:33:11.000000000 +1100
+++ udftools-1.0.0b3/cdrwtool/main.c	2013-03-09 16:27:35.630406411 +1100
@@ -30,6 +30,7 @@
 #include <time.h>
 #include <sys/time.h>
 #include <errno.h>
+#include <string.h>
 
 #include "cdrwtool.h"
 #include "defaults.h"
--- udftools-1.0.0b3.orig/cdrwtool/options.c	2003-10-24 11:16:04.000000000 +1000
+++ udftools-1.0.0b3/cdrwtool/options.c	2013-03-09 16:27:49.846422176 +1100
@@ -23,6 +23,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <malloc.h>
+#include <string.h>
 
 #include "cdrwtool.h"
 #include "libudffs.h"
--- udftools-1.0.0b3.orig/include/udf_endian.h	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/include/udf_endian.h	2013-03-09 16:24:42.000920607 +1100
@@ -23,6 +23,7 @@
 #ifndef __UDF_ENDIAN_H
 #define __UDF_ENDIAN_H
 
+#include <string.h>
 #include "bswap.h"
 
 static inline lb_addr lelb_to_cpu(lb_addr in)
--- udftools-1.0.0b3.orig/libudffs/file.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/libudffs/file.c	2013-03-09 16:25:21.175013609 +1100
@@ -21,6 +21,7 @@
  */
 
 #include <malloc.h>
+#include <string.h>
 
 #include "libudffs.h"
 #include "defaults.h"
--- udftools-1.0.0b3.orig/libudffs/unicode.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/libudffs/unicode.c	2013-03-09 16:25:59.433223040 +1100
@@ -20,6 +20,8 @@
  *
  */
 
+#include <string.h>
+
 #include "libudffs.h"
 #include "defaults.h"
 #include "config.h"
--- udftools-1.0.0b3.orig/mkudffs/main.c	2004-02-23 14:33:11.000000000 +1100
+++ udftools-1.0.0b3/mkudffs/main.c	2013-03-09 16:26:27.967171881 +1100
@@ -31,6 +31,7 @@
 #include <sys/time.h>
 #include <errno.h>
 #include <limits.h>
+#include <string.h>
 
 #include "mkudffs.h"
 #include "defaults.h"
--- udftools-1.0.0b3.orig/mkudffs/mkudffs.c	2004-02-23 14:35:33.000000000 +1100
+++ udftools-1.0.0b3/mkudffs/mkudffs.c	2013-03-09 16:26:55.098244722 +1100
@@ -30,6 +30,7 @@
 #include <time.h>
 #include <sys/time.h>
 #include <errno.h>
+#include <string.h>
 
 #include "mkudffs.h"
 #include "defaults.h"
--- udftools-1.0.0b3.orig/mkudffs/options.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/mkudffs/options.c	2013-03-09 16:27:17.188691854 +1100
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 #include <malloc.h>
+#include <string.h>
 
 #include "mkudffs.h"
 #include "defaults.h"
--- udftools-1.0.0b3.orig/pktsetup/pktsetup.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/pktsetup/pktsetup.c	2013-03-09 16:30:53.851742260 +1100
@@ -23,6 +23,7 @@
 #include <getopt.h>
 #include <bits/types.h>
 #include <sys/types.h>
+#include <limits.h>
 
 #include <linux/cdrom.h>
 
--- udftools-1.0.0b3.orig/wrudf/ide-pc.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/wrudf/ide-pc.c	2013-03-09 16:29:57.634001857 +1100
@@ -31,6 +31,7 @@
 #include <sys/types.h>		/* for u_char etc. */
 #include <linux/cdrom.h>
 #include <unistd.h>		/* sleep() */
+#include <stdlib.h>
 
 #include "bswap.h"
 #include "ide-pc.h"
--- udftools-1.0.0b3.orig/wrudf/wrudf-cdr.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/wrudf/wrudf-cdr.c	2013-03-09 16:31:43.156091936 +1100
@@ -6,6 +6,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
+
 #include "wrudf.h"
 #include "ide-pc.h"
 #include "bswap.h"
--- udftools-1.0.0b3.orig/wrudf/wrudf-cdrw.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/wrudf/wrudf-cdrw.c	2013-03-09 16:29:05.652037738 +1100
@@ -31,6 +31,7 @@
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <linux/cdrom.h>		/* for CDROM_DRIVE_STATUS  */
+#include <string.h>
 
 #include "wrudf.h"
 #include "ide-pc.h"
--- udftools-1.0.0b3.orig/wrudf/wrudf.c	2002-11-26 18:18:51.000000000 +1100
+++ udftools-1.0.0b3/wrudf/wrudf.c	2013-03-09 16:31:10.001538000 +1100
@@ -245,7 +245,7 @@
 	    } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 )
 		virtualPartitionNum = i;
 	}
-	(char*)spm += spm->partitionMapLength;
+	spm += spm->partitionMapLength;
     }
 
     if( medium == CDR ) {