summaryrefslogtreecommitdiffstats
path: root/system/lv/patches/fix_implicit_decls.diff
blob: 1f9de61b910020b0a004a6e8b0d9e9e4a86c8e91 (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
Description: Remove implicit declaration warnings by adding
appropriate #includes, and fix a typo in a prototype.
Author: B. Watson <yahlcru@gmail.com>

--

diff -Naur lv-4.51.orig/src/file.h lv-4.51.orig.patched/src/file.h
--- lv-4.51.orig/src/file.h	2020-11-12 02:03:33.560002050 -0500
+++ lv-4.51.orig.patched/src/file.h	2020-11-12 02:04:06.555999050 -0500
@@ -172,7 +172,7 @@
 public inline int IobufGetc( iobuf_t *iobuf );
 public inline int IobufUngetc( int ch, iobuf_t *iobuf );
 public offset_t IobufFtell( iobuf_t *iobuf );
-public int IobufFseeko( iobuf_t *iobuf, offset_t off, int mode );
+public int IobufFseek( iobuf_t *iobuf, offset_t off, int mode );
 public int IobufFeof( iobuf_t *iobuf );
 #endif
 #define IobufPutc( a, b )	putc( a, (b)->iop )
diff -Naur lv-4.51.orig/src/guess.c lv-4.51.orig.patched/src/guess.c
--- lv-4.51.orig/src/guess.c	2003-11-12 22:08:19.000000000 -0500
+++ lv-4.51.orig.patched/src/guess.c	2020-11-12 02:04:22.621997590 -0500
@@ -21,6 +21,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 
 #include <import.h>
 #include <decode.h>
diff -Naur lv-4.51.orig/src/guesslocale.c lv-4.51.orig.patched/src/guesslocale.c
--- lv-4.51.orig/src/guesslocale.c	2004-01-05 03:41:22.000000000 -0500
+++ lv-4.51.orig.patched/src/guesslocale.c	2020-11-12 02:04:49.294995165 -0500
@@ -20,6 +20,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <ctype.h>
+
 #ifdef HAVE_SETLOCALE
 
 #include <stdlib.h>