]> git.pld-linux.org Git - packages/bc.git/blobdiff - bc-save_adr.patch
- fix lib loading (e.g. on x86_64 bc -l give sigsegv)
[packages/bc.git] / bc-save_adr.patch
diff --git a/bc-save_adr.patch b/bc-save_adr.patch
new file mode 100644 (file)
index 0000000..2ead293
--- /dev/null
@@ -0,0 +1,14 @@
+--- bc-1.06/bc/load.c.s390     Wed Sep 13 20:22:38 2000
++++ bc-1.06/bc/load.c  Wed Sep  5 16:10:18 2001
+@@ -156,7 +156,10 @@
+   long  label_no;
+   long  vaf_name;     /* variable, array or function number. */
+   long  func;
+-  program_counter save_adr;
++  /* Make save_adr static. Otherwise the whole address save stuff doesn't make
++     any sense at all and break e.g. on S390.
++     09/05/01 Phil Knirsch <pknirsch@redhat.de> */
++  static program_counter save_adr;
+   /* Initialize. */
+   str = code;
This page took 0.053542 seconds and 4 git commands to generate.