CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.13 and updated mandir
[crossrootfs.git] / bc / bc-1.06-compile_fixes.patch
1 diff -ru bc-1.06/bc/load.c bc-1.06-new/bc/load.c
2 --- bc-1.06/bc/load.c 2000-09-13 20:22:38.000000000 +0200
3 +++ bc-1.06-new/bc/load.c 2004-05-01 14:25:08.164146592 +0200
4 @@ -34,7 +34,7 @@
5
6 /* Load variables. */
7
8 -program_counter load_adr;
9 +static program_counter load_adr;
10 char load_str;
11 char load_const;
12
13 diff -ru bc-1.06/bc/scan.l bc-1.06-new/bc/scan.l
14 --- bc-1.06/bc/scan.l 2000-09-13 20:25:47.000000000 +0200
15 +++ bc-1.06-new/bc/scan.l 2004-05-01 14:21:02.765452864 +0200
16 @@ -143,7 +143,6 @@
17
18 /* Definitions for readline access. */
19 extern FILE *rl_instream;
20 -_PROTOTYPE(char *readline, (char *));
21
22 /* rl_input puts upto MAX characters into BUF with the number put in
23 BUF placed in *RESULT. If the yy input file is the same as
24 diff -ru bc-1.06/configure bc-1.06-new/configure
25 --- bc-1.06/configure 2000-10-03 20:34:24.000000000 +0200
26 +++ bc-1.06-new/configure 2004-05-01 14:21:27.159744368 +0200
27 @@ -2245,7 +2245,7 @@
28
29
30 if test "$LEX" = "flex" ; then
31 - LEX="flex -I8"
32 + LEX="flex -I"
33 else
34 if test "$bcrl" = "y" ; then
35 echo "configure: warning: readline works only with flex." 1>&2
36 diff -ru bc-1.06/lib/number.c bc-1.06-new/lib/number.c
37 --- bc-1.06/lib/number.c 2000-10-03 20:34:25.000000000 +0200
38 +++ bc-1.06-new/lib/number.c 2004-05-01 14:24:41.028271872 +0200
39 @@ -30,6 +30,7 @@
40 *************************************************************************/
41
42 #include <stdio.h>
43 +#include <string.h>
44 #include <config.h>
45 #include <number.h>
46 #include <assert.h>