File: fix-gcc10-build.patch

package info (click to toggle)
xmakemol 5.16-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,352 kB
  • sloc: ansic: 19,096; sh: 2,977; perl: 98; makefile: 97
file content (14 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: gcc-10 uses -fcommon by default, use extern to unbreak build
Author: Nilesh Patra <npatra974@gmail.com>
Last-Update: 2021-02-19
--- a/bbox.h
+++ b/bbox.h
@@ -26,7 +26,7 @@
 
 #ifdef __BBOX_C__
 
-bounding_box bbox;
+extern bounding_box bbox;
 enum bbox_type bbox_type = AUTOMATIC;
 Widget bbox_dialog = NULL;  /* wjq */
 Widget bbMin[4], bbMax[4];  /* 0:     The whole entry line for Min, Max values,